Ejects enums from all files specified by target.
target
Rewrites each enum found in the target to the safer alternative. for example:
// before rewriteenum YesNo { No, Yes,}// after rewriteconst YesNo = { No: 0, Yes: 1,} as const;type YesNo = typeof YesNo[keyof typeof YesNo]; Copy
// before rewriteenum YesNo { No, Yes,}// after rewriteconst YesNo = { No: 0, Yes: 1,} as const;type YesNo = typeof YesNo[keyof typeof YesNo];
Target specification of the rewrite.
Additional options for the rewrite.
Ejects enums from all files specified by
target.Rewrites each enum found in the target to the safer alternative. for example: