Skip to content

A tool that converts enums to string literal enum with only one click. Build with ❤️.

License

Notifications You must be signed in to change notification settings

HearTao/ts-string-literal-enum-plugin

Repository files navigation

ts-string-literal-enum-plugin

A tool that converts enums to string literal enum with only one click. Build with ❤️.

Usages

Usages

Install

As VSCode extension

You can see ts-string-literal-enum-plugin.

As typescript plugin

  1. Install package

yarn add ts-string-literal-enum-plugin or npm i ts-string-literal-enum-plugin

  1. Update tsconfig
{
    "compilerOptions": {
        "plugins": [{
            "name": "ts-string-literal-enum-plugin",
        }]
    }
}
  1. Use TypeScript from node_modules

select_typescript_version

Note: you can learn more at here

  1. Enjoy :XD

About

A tool that converts enums to string literal enum with only one click. Build with ❤️.

Resources

License

Stars

Watchers

Forks

Packages

No packages published