Pārlūkot izejas kodu

fix: type error

Peng Xiao 3 gadi atpakaļ
vecāks
revīzija
f487c5817c

+ 2 - 2
tldraw/packages/core/src/lib/tools/TLDotTool/states/IdleState.tsx

@@ -1,10 +1,10 @@
-import { TLDotShape, TLApp, TLShape, TLToolState } from '~lib'
+import { TLBoxShape, TLApp, TLShape, TLToolState } from '~lib'
 import type { TLEventMap, TLStateEvents } from '~types'
 import type { TLDotTool } from '../TLDotTool'
 
 export class IdleState<
   S extends TLShape,
-  T extends S & TLDotShape,
+  T extends S & TLBoxShape,
   K extends TLEventMap,
   R extends TLApp<S, K>,
   P extends TLDotTool<T, S, K, R>