chore: replace .d.ts type imports with .js imports, as .d.ts imports break usage checks in the IDE

This commit is contained in:
Alessio Gravili
2024-03-07 16:08:49 -05:00
parent b4434a369b
commit 50c7269315
562 changed files with 916 additions and 924 deletions

View File

@@ -4,8 +4,8 @@ import type { Dispatch } from 'react'
import { createContext, useContext } from 'react'
import type { usePopupWindow } from '../usePopupWindow.d.ts'
import type { SizeReducerAction } from './sizeReducer.d.ts'
import type { usePopupWindow } from '../usePopupWindow.js'
import type { SizeReducerAction } from './sizeReducer.js'
export interface LivePreviewContextType {
appIsReady: boolean

View File

@@ -4,7 +4,7 @@ import type { LivePreviewConfig } from 'payload/config'
import { DndContext } from '@dnd-kit/core'
import React, { useCallback, useEffect, useState } from 'react'
import type { usePopupWindow } from '../usePopupWindow.d.ts'
import type { usePopupWindow } from '../usePopupWindow.js'
import { customCollisionDetection } from './collisionDetection.js'
import { LivePreviewContext } from './context.js'