Skip to content

Commit

Permalink
Typing fix for parsers in Config interface (#1281)
Browse files Browse the repository at this point in the history
Changes the `parsers` array to `string` instead of `Parsers` as it is supposed to be a list of parsers names.

Fixes #1280
  • Loading branch information
lukasoppermann authored Jul 18, 2024
1 parent 3d0a74f commit e6cbf73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/angry-dots-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'style-dictionary': patch
---

Fix type information for Config.parser
2 changes: 1 addition & 1 deletion types/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export interface Config {
hooks?: Hooks;
expand?: ExpandConfig;
platforms?: Record<string, PlatformConfig>;
parsers?: Parser[];
parsers?: string[];
preprocessors?: string[];
usesDtcg?: boolean;
}

0 comments on commit e6cbf73

Please sign in to comment.