1.0.1 • Published 8 years ago
json-d-ts v1.0.1
JSON d.ts
JSON definition for Typescript that allows loading .json files using import.
Usage
In order to load a .json file using Typescript, do the following:
- Install this package
npm install --save-dev json-d-ts- Add to your
tsconfig.jsonthe path to the installed module:
"typeRoots": [
"../node_modules/json-d-ts"
]- Load your
.jsonfiles easily usingimportstatements:
import * as data from './example.json';