Answers for "typescript imports json file as module"

1

import json typescript

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

Code answers related to "typescript imports json file as module"

Code answers related to "Javascript"

Browse Popular Code Answers by Language