Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
TypeScriptをより実践的に使うために
Search
Mayuki Sawatari
June 14, 2014
Programming
6
4.3k
TypeScriptをより実践的に使うために
Build Insider Offline #2 (
http://www.buildinsider.net/event/offline/02
)
Mayuki Sawatari
June 14, 2014
Tweet
Share
More Decks by Mayuki Sawatari
See All by Mayuki Sawatari
Real World .NET Core on Kubernetes
mayuki
2
3.4k
OneDrive On-Demandがすごい
mayuki
0
2.2k
Android TVとXamarinとKotlin
mayuki
2
450
Cutting Edge!
mayuki
0
3.1k
.NETプログラム(のランタイムを実装する)入門なのです
mayuki
0
2k
Acute Low back pain
mayuki
1
220
まるごと Internet Explorer 11 + Windows Phone 8.1
mayuki
0
220
How to setup VPN server on Microsoft Azure
mayuki
1
330
Front-end Development using CSharp
mayuki
0
140
Other Decks in Programming
See All in Programming
しくじり先生 Image Matching Challenge 2024 編
goosehaaan
0
290
リプレイスを安心安全に 〜段階的リプレイスと等価比較〜/Safe and Secure Replacement ~ Phased Replacement and Equivalent Comparison ~
shun0624
1
300
SPLから始める「データ構造」入門
o0h
PRO
6
900
奥が深いメールのシステム / The depth of Email system
linyows
3
250
PostgreSQLで手続き言語を動かす PL/pgSQL入門
tameguro
0
100
高品質と高スピードを両立させるテストアプローチ/Test Approach that Improves Quality and Agility Together
goyoki
13
8.7k
Converting AST
yui_knk
4
180
[Kotlin Fest 2024] もっとKotlinを好きになる!K2時代のKotlin Compiler Plugin開発
kitakkun
3
2.6k
設計の考え方 - インターフェースと腐敗防止層編 #phpconfuk / Interface and Anti Corruption Layer
okashoi
8
1.7k
良いテストコードのために悪いテストコードを理解する - 不安定なテスト編: iOSアプリ開発ユニットテストの場合
yimajo
20
4.7k
「ナントカLR」を整理する / Clarifying LR Algorithms
junk0612
1
170
Get started with Compose Multiplatform!
ogi2ogi
0
1.3k
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
331
56k
How to train your dragon (web standard)
notwaldorf
78
5.4k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
21
1.7k
Scaling GitHub
holman
457
140k
Optimizing for Happiness
mojombo
372
69k
Principles of Awesome APIs and How to Build Them.
keavy
122
16k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
73
15k
Making the Leap to Tech Lead
cromwellryan
126
8.7k
Being A Developer After 40
akosma
68
580k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Producing Creativity
orderedlist
PRO
339
39k
YesSQL, Process and Tooling at Scale
rocio
165
14k
Transcript
None
( )
None
TypeScript TypeScript TypeScript TypeScript ? ? TypeScript TypeScript
None
TypeScript Ver.1.0
JavaScript
None
( )
None
None
Module( ) Class/Interface Arrow Function
IDE ( )
None
IDE DOM
JavaScript HTML
JavaScript Visual Studio IDE JavaScript
IDE
None
Node.js WebStorm Visual Studio Playground Visual Studio Online
None
% npm install -g typescript % tsc nantoka.ts
None
JetBrains Web HTML CSS JavaScript TypeScript TypeScript/JavaScript TypeScript Node.js
None
Microsoft 2013 Update 2 (Visual Studio Express) TypeScript
None
Visual Studio TypeScript
None
JetBrains Visual Studio ( )
None
None
None
None
Microsoft Azure Web Sites Node.js+TypeScript
None
None
Web WebStorm+Node.js Windows Visual Studio Playground Visual Studio Online
None
(.d.ts) DefinitelyTyped Visual Studio DefinitelyTyped Node.js DefinitelyTyped (.d.ts)
JavaScript
GitHub (.d.ts) https://github.com/borisyankov/DefinitelyTyped
None
None
tsd % npm install -g tsd % tsd query knockout
None
JavaScript TypeScript TypeScript
TypeScript declare
declare var hoge: number; // JavaScript hoge declare class Hoge
{ foo(): void; }
// Rabbit function Rabbit(name) { this.name = name; } //
jump Rabbit.prototype.jump = function () { alert(this.name + ' '); } // Rabbit Tippy var Tippy = new Rabbit(' ');
any declare var Tippy: any;
declare var Tippy: any; declare class Rabbit { constructor(name: string);
// name: string; // jump(): void; // }
any declare var Tippy: Rabbit; declare class Rabbit { constructor(name:
string); // name: string; // jump(): void; // }
JS ? var HotCocoa = { name: ' ', price:
400 }; var KilimanjaroCoffee = { name: ' ', price: 600 };
new interface interface IDrinkStatic { name: string; price: number; }
declare var HotCocoa: IDrinkStatic; declare var KilimanjaroCoffee: IDrinkStatic;
None
any any
None
None
TypeScript TypeScript JavaScript tsc
None
TypeScript
None