From 92f6c61f45976b3d3ccc3915b02b79238859f170 Mon Sep 17 00:00:00 2001 From: Elena Thornton Date: Fri, 11 Aug 2023 11:03:57 -0400 Subject: [PATCH] add type for codeSyntax --- plugin-api.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin-api.d.ts b/plugin-api.d.ts index 1bf7944..2793c5c 100644 --- a/plugin-api.d.ts +++ b/plugin-api.d.ts @@ -1767,7 +1767,8 @@ declare type VariableScope = | 'FRAME_FILL' | 'SHAPE_FILL' | 'TEXT_FILL' - | 'STROKE' + | 'STROKE_COLOR' +declare type CodeSyntaxPlatform = 'WEB' | 'ANDROID' | 'IOS' interface Variable { readonly id: string name: string @@ -1788,6 +1789,9 @@ interface Variable { } remove(): void scopes: Array + codeSyntax: { + [platform in CodeSyntaxPlatform]?: string + } } interface VariableCollection { readonly id: string