From a5c2a317cadf74179e940ee990b3cc11872e06c8 Mon Sep 17 00:00:00 2001 From: Amirreza Zarkesh <56929398+ARZarkesh@users.noreply.github.com> Date: Mon, 24 Jul 2023 15:06:26 +0330 Subject: [PATCH] Update index.d.ts and improve startDrawingMode first param type --- apps/image-editor/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/image-editor/index.d.ts b/apps/image-editor/index.d.ts index ee26182c2..d94c5a6b3 100644 --- a/apps/image-editor/index.d.ts +++ b/apps/image-editor/index.d.ts @@ -321,7 +321,7 @@ declare namespace tuiImageEditor { public setObjectPosition(id: number, posInfo?: IPositionConfig): Promise; public setObjectProperties(id: number, keyValue?: IGraphicObjectProps): Promise; public setObjectPropertiesQuietly(id: number, keyValue?: IGraphicObjectProps): Promise; - public startDrawingMode(mode: string, option?: { width?: number; color?: string }): boolean; + public startDrawingMode(mode: 'CROPPER' | 'FREE_DRAWING' | 'LINE_DRAWING' | 'TEXT' | 'SHAPE', option?: { width?: number; color?: string }): boolean; public stopDrawingMode(): void; public toDataURL(options?: IToDataURLOptions): string; public undo(iterationCount: number): Promise;