Created
November 20, 2018 11:52
-
-
Save NickIliev/e1631877b196cc41c63d743d1cb18252 to your computer and use it in GitHub Desktop.
Importing JSON files using resolveJsonModule in tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import config from "./config.json"; | |
console.log(config.count); // 42 | |
console.log(config.env); // "debug" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment