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 23, 2023
1 parent 1a74847 commit 52031b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "style-dictionary",
"version": "3.9.0",
"version": "3.9.1",
"description": "Style once, use everywhere. A build system for creating cross-platform styles.",
"keywords": [
"style dictionary",
Expand Down
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 52031b3

Please sign in to comment.