diff --git a/src/ui/lib/types/shape.d.ts b/src/ui/lib/types/shape.d.ts index 27547a3..d8626be 100644 --- a/src/ui/lib/types/shape.d.ts +++ b/src/ui/lib/types/shape.d.ts @@ -1,11 +1,12 @@ +import { Selrect } from './utils/selrect'; + export type Shape = { name?: string; componentId?: string; componentFile?: string; componentRoot?: boolean; shapeRef?: string; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - selrect?: any; + selrect?: Selrect; // eslint-disable-next-line @typescript-eslint/no-explicit-any points?: any; blocked?: boolean; diff --git a/src/ui/lib/types/utils/selrect.d.ts b/src/ui/lib/types/utils/selrect.d.ts new file mode 100644 index 0000000..5852f11 --- /dev/null +++ b/src/ui/lib/types/utils/selrect.d.ts @@ -0,0 +1,10 @@ +export type Selrect = { + x: number; + y: number; + x1: number; + x2: number; + y1: number; + y2: number; + width: number; + height: number; +};