Skip to content

fix(build): type the tail Map in .ts output - #172

Open
ValiuchenkoVladyslav wants to merge 1 commit into
shadcn-ui:mainfrom
ValiuchenkoVladyslav:fix/typed-tail-map
Open

ValiuchenkoVladyslav wants to merge 1 commit into
shadcn-ui:mainfrom
ValiuchenkoVladyslav:fix/typed-tail-map

Conversation

@ValiuchenkoVladyslav

Copy link
Copy Markdown

The emitted .ts tables declare const tailRef = new Map(), which is Map<any, any>, or Map<unknown, unknown> under ts-reset, where it fails to typecheck. The template now emits new Map<string, number>() in .ts output only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant