TypeScript · Middle · Question 62 of 75

Which option lets you import config from './config.json' with typed contents?

Explanation

TypeScript infers the type from the JSON file content. Values are widened (e.g. strings, not literals).

Further reading

Problem with a question

TypeScript · Middle · question 62

Test yourself

Take the TypeScript · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz