https://hackernoon.com/import-json-into-typescript-8d465beded79
Arquivo da tag: TypeScript
Social login and authentication module for Angular 4 / 5 / 6
How to declare pipe globally to use in different Modules?
Como criptografar em MD5 com TypeScript?
https://www.npmjs.com/package/ts-md5
1. Passo é importar:
[code type=javascript]import {Md5} from ‘ts-md5/dist/md5’;
2. Exemplos:
[code type=javascript]Md5.hashStr(‘blah blah blah’) => hex:string
Md5.hashStr(‘blah blah blah’, true) => raw:Int32Array(4)
Md5.hashAsciiStr(‘blah blah blah’) => hex:string
Md5.hashAsciiStr(‘blah blah blah’, true) => raw:Int32Array(4)
TypeScript – Up and Running in Seconds
npm install -g typescript echo "console.log('hi')" > test.ts tsc test.ts node test.js start test.ts; start test.js tsc *.ts --watch |