Skip to content

Commit

Permalink
chore(types): change typescript types for properties to be recursive (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanLovely authored Feb 9, 2021
1 parent 3b38e45 commit 193192b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,12 @@
declare namespace StyleDictionary {
interface Property {
value: string;
comment?: string;
[key: string]: any;
}

interface Properties {
[category: string]: {
[type: string]:
| Property
| {
[item: string]:
| Property
| { [subItem: string]: Property | { [state: string]: Property } };
};
};
[key: string]: Properties | Property;
}

interface Options {
Expand Down

0 comments on commit 193192b

Please sign in to comment.