From a474ef9f57604d49da27ef6dcf9e96fe2d78b12f Mon Sep 17 00:00:00 2001 From: Alex Hurtado Date: Wed, 5 Jun 2024 20:40:48 -0400 Subject: [PATCH] Typography variable enum typing fix --- plugin-api.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin-api.d.ts b/plugin-api.d.ts index b4387ee..4056bff 100644 --- a/plugin-api.d.ts +++ b/plugin-api.d.ts @@ -1233,7 +1233,7 @@ interface StyledTextSegment { readonly [feature in OpenTypeFeature]: boolean } boundVariables?: { - [field in keyof Omit< + [field in Exclude< VariableBindableTextField, 'paragraphSpacing' | 'paragraphIndent' >]?: VariableAlias @@ -1957,12 +1957,12 @@ interface NonResizableTextMixin { getRangeBoundVariable( start: number, end: number, - field: keyof Omit, + field: Exclude, ): number | PluginAPI['mixed'] setRangeBoundVariable( start: number, end: number, - field: keyof Omit, + field: Exclude, variable: Variable | null, ): void getStyledTextSegments<