Skip to content

Commit

Permalink
fix(types): format config expects formatter function (#650)
Browse files Browse the repository at this point in the history
As per the docs, config expects an object of Formatter functions, not the Format object.
  • Loading branch information
jacoblapworth authored Jun 11, 2021
1 parent 904a6ec commit b12c4b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/Config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Transform } from './Transform';
import { TransformGroup } from './TransformGroup';
import { Filter } from './Filter';
import { FileHeader } from './FileHeader';
import { Format } from './Format';
import { Formatter } from './Format';
import { Action } from './Action';
import { Platform } from './Platform';
import { DesignTokens } from './DesignToken';
Expand All @@ -25,7 +25,7 @@ export interface Config {
parsers?: Parser[];
transform?: Record<string, Transform>;
transformGroup?: Record<string, TransformGroup>;
format?: Record<string, Format>;
format?: Record<string, Formatter>;
filter?: Record<string, Filter>;
fileHeader?: Record<string, FileHeader>;
action?: Record<string, Action>;
Expand Down

0 comments on commit b12c4b1

Please sign in to comment.