From fcce1d45e9f879703b26db0dd281a338bb6db988 Mon Sep 17 00:00:00 2001 From: jorenbroekema Date: Thu, 23 Nov 2023 09:37:23 +0100 Subject: [PATCH] fix: types for FormatHelpers.LineFormatting to add commentPosition --- types/FormatHelpers.d.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/types/FormatHelpers.d.ts b/types/FormatHelpers.d.ts index a2f6bea3c..60027270a 100644 --- a/types/FormatHelpers.d.ts +++ b/types/FormatHelpers.d.ts @@ -19,6 +19,7 @@ import { File } from "./File"; export interface LineFormatting { prefix?: string; commentStyle?: "short" | "long" | "none"; + commentPosition?: "inline" | "above"; indentation?: string; separator?: string; suffix?: string; @@ -53,7 +54,7 @@ export interface FormattedVariablesArgs { export interface FormatHelpers { createPropertyFormatter: ( - args: TokenFormatterArgs + args: TokenFormatterArgs, ) => (token: TransformedToken) => string; fileHeader: (args: FileHeaderArgs) => string; formattedVariables: (args: FormattedVariablesArgs) => string; @@ -62,15 +63,15 @@ export interface FormatHelpers { iconsWithPrefix: ( prefix: string, allTokens: DesignToken[], - options: object + options: object, ) => string; sortByReference: ( - dictionary: Dictionary + dictionary: Dictionary, ) => (a: TransformedToken, b: TransformedToken) => number; sortByName: (a: DesignToken, b: DesignToken) => number; setSwiftFileProperties: ( options: object, objectType: string, - transformGroup: string + transformGroup: string, ) => string; }