typescript-json-as-const-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

typescript-json-as-const-plugin

Plugin changes the way how typescript inferencing JSON files typings to as const behavior. It is part of nanointl project but may be used apart.

Installation

pnpm add -D typescript-json-as-const-plugin
# or: npm install --save-dev typescript-json-as-const-plugin

Usage

  1. Add plugin to your tsconfig.json
{
  "compilerOptions": {
    ...
    "plugins": [
+      { "name": "typescript-json-as-const-plugin", "include": ["./src/locales"] },
      ...
    ]
  },
  ...
}
  1. (VS Code only) switch to workspace version of Typescript

  2. Restart typescript server.

Package Sidebar

Install

npm i typescript-json-as-const-plugin

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

36.3 kB

Total Files

12

Last publish

Collaborators

  • phytonmk