Last active
September 3, 2018 15:02
-
-
Save Drag13/89f9ed6e919af95ef63f2a89cde2489e to your computer and use it in GitHub Desktop.
Importing json in typescript
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
// Fix that gives ability to import json files without TypeScript errors | |
declare module '*.json' { | |
const value: any; | |
export default value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment