saenglert / jsonimport

Quick Example for JSON imports in TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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' } ] }

About

Quick Example for JSON imports in TypeScript


Languages

Language:JavaScript 65.9%Language:HTML 22.9%Language:TypeScript 11.2%