-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello! Really enjoying using this :)
I was looking for a way to iterate over the union type, was wondering what your thoughts were on using a const assertions to declare the SvgName type.
So, instead of having:
export {}
declare global {
export type SvgName = 'plus' | 'minus' | 'cross' | 'default' | etc…
}
the module would generate:
export const svgName = ['plus', 'minus', 'cross', 'default', etc…] as const
declare global {
type SvgName = typeof svgName[number]
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels