From 538c0763742ba81aaf0259d9ae2a37af25f050d1 Mon Sep 17 00:00:00 2001 From: Jordi Sala Morales Date: Mon, 13 May 2024 14:04:33 +0200 Subject: [PATCH] Fix types (#107) --- ui-src/lib/types/penpotFile.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ui-src/lib/types/penpotFile.ts b/ui-src/lib/types/penpotFile.ts index 43f42ff..86438a0 100644 --- a/ui-src/lib/types/penpotFile.ts +++ b/ui-src/lib/types/penpotFile.ts @@ -6,20 +6,21 @@ import { GroupShape } from '@ui/lib/types/shapes/groupShape'; import { PathShape } from '@ui/lib/types/shapes/pathShape'; import { RectShape } from '@ui/lib/types/shapes/rectShape'; import { TextShape } from '@ui/lib/types/shapes/textShape'; +import { Uuid } from '@ui/lib/types/utils/uuid'; export interface PenpotFile { - addPage(name: string, options?: PenpotPageOptions): void; + addPage(name: string, options?: PenpotPageOptions): Uuid; closePage(): void; - addArtboard(artboard: FrameShape): void; + addArtboard(artboard: FrameShape): Uuid; closeArtboard(): void; - addGroup(group: GroupShape): void; + addGroup(group: GroupShape): Uuid; closeGroup(): void; - addBool(bool: BoolShape): void; + addBool(bool: BoolShape): Uuid; closeBool(): void; - createRect(rect: RectShape): void; - createCircle(circle: CircleShape): void; - createPath(path: PathShape): void; - createText(options: TextShape): void; + createRect(rect: RectShape): Uuid; + createCircle(circle: CircleShape): Uuid; + createPath(path: PathShape): Uuid; + createText(options: TextShape): Uuid; // addLibraryColor(color: any): void; // updateLibraryColor(color: any): void; // deleteLibraryColor(color: any): void;