diff --git a/src/ui/lib/types/shape.d.ts b/src/ui/lib/types/shape.d.ts index d8626be..77ace6d 100644 --- a/src/ui/lib/types/shape.d.ts +++ b/src/ui/lib/types/shape.d.ts @@ -1,3 +1,4 @@ +import { Point } from './utils/point'; import { Selrect } from './utils/selrect'; export type Shape = { @@ -7,8 +8,7 @@ export type Shape = { componentRoot?: boolean; shapeRef?: string; selrect?: Selrect; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - points?: any; + points?: Point[]; blocked?: boolean; collapsed?: boolean; locked?: boolean; diff --git a/src/ui/lib/types/utils/point.d.ts b/src/ui/lib/types/utils/point.d.ts new file mode 100644 index 0000000..6522523 --- /dev/null +++ b/src/ui/lib/types/utils/point.d.ts @@ -0,0 +1,4 @@ +export type Point = { + x: number; + y: number; +};