TypeScript · Middle · Question 62 of 75
Which option lets you import config from './config.json' with typed contents?
- ✓Correct answer:
resolveJsonModule - 2
allowJs - 3
jsonTypes
Explanation
TypeScript infers the type from the JSON file content. Values are widened (e.g. strings, not literals).