/jsonimport

Quick Example for JSON imports in TypeScript

Primary LanguageJavaScript

A quick example for how to import JSON files in Typescript properly (well, at least according to my knowledge ;) )

Installation

> git clone https://github.com/saenglert/jsonimport.git
> cd jsonimport/
> npm install

Build

npm run build

Auto Build & Usage

npm run dev

A blank browser window should open and the terminal should output the following:

Import { books: [ { author: 'Georg Orwell', title: '1984' } ] }