Open unional opened 2 years ago
Seems like there is a bug when transforming template literals:
export type StoreVersion = `${number}.${number}.${number}` | number;
transforms to:
declare export type StoreVersion = undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any | number;
Which flowgen crash caused by SyntaxError when checking by pretter:
flowgen
SyntaxError: Only declares and type imports are allowed inside declare module
I have a repo here: https://github.com/unional/global-store/tree/flow (pnpm build:flow)
pnpm build:flow
Nice find, open to a fix
Seems like there is a bug when transforming template literals:
transforms to:
Which
flowgen
crash caused by SyntaxError when checking by pretter:I have a repo here: https://github.com/unional/global-store/tree/flow (
pnpm build:flow
)