mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 05:33:02 -05:00
add shape for uuid
This commit is contained in:
parent
e36a702b9b
commit
645b0360c4
7 changed files with 19 additions and 14 deletions
|
@ -1,5 +1,6 @@
|
|||
import { Uuid } from '../utils/uuid';
|
||||
|
||||
export type CircleAttributes = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
id?: any;
|
||||
id?: Uuid;
|
||||
type: symbol;
|
||||
};
|
||||
|
|
5
src/ui/lib/types/frame/frameAttributes.d.ts
vendored
5
src/ui/lib/types/frame/frameAttributes.d.ts
vendored
|
@ -1,6 +1,7 @@
|
|||
import { Uuid } from '../utils/uuid';
|
||||
|
||||
export type FrameAttributes = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
id?: any;
|
||||
id?: Uuid;
|
||||
type: symbol;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
shapes?: any[];
|
||||
|
|
5
src/ui/lib/types/group/groupAttributes.d.ts
vendored
5
src/ui/lib/types/group/groupAttributes.d.ts
vendored
|
@ -1,6 +1,7 @@
|
|||
import { Uuid } from '../utils/uuid';
|
||||
|
||||
export type GroupAttributes = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
id?: any;
|
||||
id?: Uuid;
|
||||
type: symbol;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
shapes?: any[];
|
||||
|
|
8
src/ui/lib/types/image/imageAttributes.d.ts
vendored
8
src/ui/lib/types/image/imageAttributes.d.ts
vendored
|
@ -1,6 +1,7 @@
|
|||
import { Uuid } from '../utils/uuid';
|
||||
|
||||
export type ImageAttributes = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
id?: any;
|
||||
id?: Uuid;
|
||||
type: symbol;
|
||||
// TODO: Investigate where it comes from
|
||||
dataUri?: string;
|
||||
|
@ -8,7 +9,6 @@ export type ImageAttributes = {
|
|||
width: number;
|
||||
height: number;
|
||||
mtype?: string;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
id?: any;
|
||||
id?: Uuid;
|
||||
};
|
||||
};
|
||||
|
|
5
src/ui/lib/types/rect/rectAttributes.d.ts
vendored
5
src/ui/lib/types/rect/rectAttributes.d.ts
vendored
|
@ -1,5 +1,6 @@
|
|||
import { Uuid } from '../utils/uuid';
|
||||
|
||||
export type RectAttributes = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
id?: any;
|
||||
id?: Uuid;
|
||||
type: symbol;
|
||||
};
|
||||
|
|
4
src/ui/lib/types/text/textAttributes.d.ts
vendored
4
src/ui/lib/types/text/textAttributes.d.ts
vendored
|
@ -1,8 +1,8 @@
|
|||
import { Uuid } from '../utils/uuid';
|
||||
import { TextContent } from './textContent';
|
||||
|
||||
export type TextAttributes = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
id?: any;
|
||||
id?: Uuid;
|
||||
type: symbol;
|
||||
content?: TextContent;
|
||||
};
|
||||
|
|
1
src/ui/lib/types/utils/uuid.d.ts
vendored
Normal file
1
src/ui/lib/types/utils/uuid.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export type Uuid = string;
|
Loading…
Reference in a new issue