A tool that converts enums to string literal enum with only one click. Build with ❤️.
You can see ts-string-literal-enum-plugin.
- Install package
yarn add ts-string-literal-enum-plugin
or npm i ts-string-literal-enum-plugin
- Update tsconfig
{
"compilerOptions": {
"plugins": [{
"name": "ts-string-literal-enum-plugin",
}]
}
}
- Use TypeScript from
node_modules
Note: you can learn more at here
- Enjoy :XD