Closed liamqma closed 1 year ago
Input file:
function cssMap(): Readonly<Record<string, string>>;
generated file:
function cssMap(): Readonly<{[key: string]: string>}; // incorrect syntax
The correct one should be
function cssMap(): Readonly<{[key: string]: string}>;
The workaround is not using Readonly<Record>.
Readonly<Record>
Sorry, I cannot reproduce it anymore. It must be a mistake on my side.
Input file:
generated file:
The correct one should be
The workaround is not using
Readonly<Record>
.