Answers for "typescript type import json"

2

import json typescript

// add this in your tsconfig.json file:
{
  "compilerOptions": {
    "resolveJsonModule": true
  }
}
Posted by: Guest on October-01-2021
0

ts import json

{
  ...,
  "compilerOptions": {
    ...
    "moduleResolution": "node", // add this line
    "resolveJsonModule": true	// add this line
  },
  "include": ["**/*.ts", "./**/*.json"] // add json path
}
Posted by: Guest on February-09-2022

Code answers related to "typescript type import json"

Code answers related to "Javascript"

Browse Popular Code Answers by Language