Skip to content

Commit

Permalink
fix: types for FormatHelpers.LineFormatting to add commentPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed Nov 24, 2023
1 parent 1a74847 commit fcce1d4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions types/FormatHelpers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
}

0 comments on commit fcce1d4

Please sign in to comment.