From 193192b84b16d14fd09dfcb78e0a727815e82551 Mon Sep 17 00:00:00 2001 From: Evan Lovely Date: Mon, 8 Feb 2021 16:25:33 -0800 Subject: [PATCH] chore(types): change typescript types for properties to be recursive (#539) --- types/index.d.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index bad2c7554..5bb74f53c 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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 {