Skip to content

stepancar/typescript-plugin-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-plugin-json

Usage

install

npm install typescript-plugin-json -D
yarn add typescript-plugin-json -D

add it to your tsconfig.json

"compilerOptions": {
    "plugins": [
        { "name": "typescript-plugin-json" },
    ]
}

data.json

{
    "foo": "BAR"
}

*.ts

import data from './data.json';

console.log(data.foo);

Try to cast json setting consts to strings

About

Try to cast json setting consts to strings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published