Skip to content

Instantly share code, notes, and snippets.

@Drag13
Last active September 3, 2018 15:02
Show Gist options
  • Save Drag13/89f9ed6e919af95ef63f2a89cde2489e to your computer and use it in GitHub Desktop.
Save Drag13/89f9ed6e919af95ef63f2a89cde2489e to your computer and use it in GitHub Desktop.
Importing json in typescript
// 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