Answers for "typescript types from json"

1

import json typescript

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

json to object typescript

let obj: MyObj = JSON.parse('{ "myString": "string", "myNumber": 4 }');
Posted by: Guest on June-05-2020

Code answers related to "typescript types from json"

Code answers related to "Javascript"

Browse Popular Code Answers by Language