From 2a74f40a59c4c9621a29448e8871649ee73f0005 Mon Sep 17 00:00:00 2001 From: shartte Date: Mon, 3 Jul 2023 10:10:49 +0200 Subject: [PATCH] Add TypeScript Definitions (#252) Add a typescript definition file to enable importing tokens from TypeScript code Co-authored-by: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> --- style-dictionary.config.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/style-dictionary.config.json b/style-dictionary.config.json index d1fc8b74d..f0df7a3fc 100644 --- a/style-dictionary.config.json +++ b/style-dictionary.config.json @@ -31,6 +31,10 @@ { "destination": "tokens.js", "format": "javascript/es6" + }, + { + "destination": "tokens.d.ts", + "format": "typescript/es6-declarations" } ] },