Skip to content

Instantly share code, notes, and snippets.

@NickIliev
Created November 20, 2018 11:52
Show Gist options
  • Save NickIliev/e1631877b196cc41c63d743d1cb18252 to your computer and use it in GitHub Desktop.
Save NickIliev/e1631877b196cc41c63d743d1cb18252 to your computer and use it in GitHub Desktop.
Importing JSON files using resolveJsonModule in tsconfig.json
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