TypeScript λ‘ RxJs κ°λ° νκΈ°
μ°μ typescript μ build λκ΅¬μΈ gulp-cli λ₯Ό μ€μΉνλ€. https://www.typescriptlang.org/ http://gulpjs.com/
tools
npm install -g typescript typings gulp-cli npm init
build
μ¬κΈ°μλ build λκ΅¬λ‘ gulp λ₯Ό μ°κ² λ€.
npm install gulp gulp-typescript --save-dev npm install jquery
gulpfile.js λ€μ νμ΄μ§λ₯Ό μ°Έκ³ https://www.typescriptlang.org/docs/handbook/gulp.html
RxJs
Google μμ rxjs λ₯Ό κ²μνλ©΄ λ κ°κ° λμ¨λ€. μ²μμ μ΄λ»κ² λ€λ₯Έμ§ λͺ°λλλ° λ²μ μ°¨μ΄μΈλ― νλ€.
v5 beta
https://github.com/ReactiveX/rxjs http://reactivex.io/rxjs
v4
https://github.com/Reactive-Extensions/RxJS http://reactivex.io/
v5 λ TypeScript λ‘ μμ±λμκΈ° λλ¬Έμ d.ts νμΌμ΄ νμμμ§λ§ v4 λ d.ts (type definition file) νμΌμ΄ νμνλ€.
typings install rx --save --global
http://stackoverflow.com/questions/36933788/using-rxjs-with-typescript
Promise λ₯Ό μ¬μ©νκΈ° μν΄μλ μλ λ§ν¬ μ°Έμ‘° http://stackoverflow.com/questions/27573365/how-to-use-typescript-with-native-es6-promises
tsconfig.json νμΌμ΄ νμνλ°
tsc --init
https://github.com/Microsoft/TypeScript/issues/3079
or
Create a new tsd.json and tsd.d.ts
tsd init
https://github.com/DefinitelyTyped/tsd
μΌλ‘ μμ±ν μ μλ€.
μμΈ μ€μ μ μλ λ§ν¬λ₯Ό μ°Έμ‘° https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
Editor
https://github.com/Microsoft/TypeScript/wiki/TypeScript-Editor-Support
















