0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 21:53:27 -05:00

add shape for uuid

This commit is contained in:
Jordi Sala Morales 2024-04-10 11:53:41 +00:00
parent e36a702b9b
commit 645b0360c4
No known key found for this signature in database
GPG key ID: C5127140107F55FD
7 changed files with 19 additions and 14 deletions

View file

@ -1,5 +1,6 @@
import { Uuid } from '../utils/uuid';
export type CircleAttributes = { export type CircleAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any id?: Uuid;
id?: any;
type: symbol; type: symbol;
}; };

View file

@ -1,6 +1,7 @@
import { Uuid } from '../utils/uuid';
export type FrameAttributes = { export type FrameAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any id?: Uuid;
id?: any;
type: symbol; type: symbol;
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
shapes?: any[]; shapes?: any[];

View file

@ -1,6 +1,7 @@
import { Uuid } from '../utils/uuid';
export type GroupAttributes = { export type GroupAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any id?: Uuid;
id?: any;
type: symbol; type: symbol;
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
shapes?: any[]; shapes?: any[];

View file

@ -1,6 +1,7 @@
import { Uuid } from '../utils/uuid';
export type ImageAttributes = { export type ImageAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any id?: Uuid;
id?: any;
type: symbol; type: symbol;
// TODO: Investigate where it comes from // TODO: Investigate where it comes from
dataUri?: string; dataUri?: string;
@ -8,7 +9,6 @@ export type ImageAttributes = {
width: number; width: number;
height: number; height: number;
mtype?: string; mtype?: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any id?: Uuid;
id?: any;
}; };
}; };

View file

@ -1,5 +1,6 @@
import { Uuid } from '../utils/uuid';
export type RectAttributes = { export type RectAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any id?: Uuid;
id?: any;
type: symbol; type: symbol;
}; };

View file

@ -1,8 +1,8 @@
import { Uuid } from '../utils/uuid';
import { TextContent } from './textContent'; import { TextContent } from './textContent';
export type TextAttributes = { export type TextAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any id?: Uuid;
id?: any;
type: symbol; type: symbol;
content?: TextContent; content?: TextContent;
}; };

1
src/ui/lib/types/utils/uuid.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export type Uuid = string;