Workday / canvas-tokens

Canvas design token infrastructure
https://workday.github.io/canvas-tokens/
Other
4 stars 5 forks source link

fix: Fix type file generation to export types instead of declarations #120

Closed RayRedGoose closed 2 months ago

RayRedGoose commented 2 months ago

Issue

Fixes #119

Summary

PR contains a fix for type issue for users don't use --skipLibCheck.

Release Category

Web Tokens

Release Note

Type generation has been updated to fix a type issue happening for user who doesn't use --skipLibCheck. Now generated type files contains types (export declare const cinnamon100: "--cnvs-base-palette-cinnamon-100";) instead of value declarations (export declare const cinnamon100 = "--cnvs-base-palette-cinnamon-100" as const;).