Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (17 loc) · 500 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 500 Bytes

Basis-typescript

This example shows how to use Tailor with Typescript

Run

Basically there 2 ways to use node with typescript. In both cases types will be checked and from external point of view they should behave identically.

With ts-node

Install ts-node and just run this file:

ts-node ./index.ts

Transpile to javascript

Install TypeScript compiler and execute following;

tsc ./index.ts
# Now we have index.js and can run it with node.js
node ./index.js