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
Kosuke Ogawa
September 18, 2020
Technology
1
250
TypeScript リテラル型について
Webナイト宮崎 Vol.10 ~てげTypeScriptを学びたい~ - connpass
https://tegehoge.connpass.com/event/186724/
Kosuke Ogawa
September 18, 2020
Tweet
Share
More Decks by Kosuke Ogawa
See All by Kosuke Ogawa
PHP or die
koogawa
0
260
Nuxt.js で非同期なデータを取得するときのポイント
koogawa
0
310
Vue 入門者が日報ツールを作ってみた
koogawa
1
340
地方に住むエンジニアがこの先生きのこるには
koogawa
0
1.1k
Firestore のデータ設計について
koogawa
0
720
はじめてウェブサイトで Firebase を使ってみた
koogawa
1
440
iOSアプリ開発におけるJavaScript
koogawa
1
420
Stack Overflow活動 その後の活動報告
koogawa
1
190
「まりも」と iOS の 6年間
koogawa
4
7.2k
Other Decks in Technology
See All in Technology
Simplify! 10 ways to reduce complexity in software development
ufried
1
180
SREからゼロイチプロダクト開発へ ー越境する打席の立ち方と期待への応え方ー / Product Engineering Night #8
itkq
2
1.1k
Oracle Cloud Infrastructure:2025年4月度サービス・アップデート
oracle4engineer
PRO
0
320
MCPが変えるAIとの協働
knishioka
1
120
意思決定を支える検索体験を目指してやってきたこと
hinatades
PRO
0
390
テストって楽しい!開発を加速させるテストの魅力 / Testing is Fun! The Fascinating of Testing to Accelerate Development
aiandrox
0
160
AI 코딩 에이전트 더 똑똑하게 쓰기
nacyot
0
460
MySQL Indexes and Histograms – How they really speed up your queries
lefred
0
140
持続可能なドキュメント運用のリアル: 1年間の成果とこれから
akitok_
1
270
更新系と状態
uhyo
8
2.2k
CodeRabbitと過ごした1ヶ月 ─ AIコードレビュー導入で実感したチーム開発の進化
mitohato14
1
230
グループ ポリシー再確認 (2)
murachiakira
0
210
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.5k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.4k
4 Signs Your Business is Dying
shpigford
183
22k
Making Projects Easy
brettharned
116
6.2k
We Have a Design System, Now What?
morganepeng
52
7.5k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Documentation Writing (for coders)
carmenintech
69
4.7k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
How to train your dragon (web standard)
notwaldorf
91
6k
Making the Leap to Tech Lead
cromwellryan
133
9.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.2k
Transcript
KOSUKE OGAWA 2020 WebφΠτٶ࡚ No. 10 Ϧςϥϧܕʹ͍ͭͯ
ࣗݾհ w 0HBXB,PTVLFʢ!LPPHBXBʣ w Ξϧגࣜձࣾʢ౦ژʣ w ٶ࡚͔ΒϑϧϦϞʔτ w J04 4XJGU
"OESPJE ,PUMJO 5ZQF4DSJQU $44 7VFKT /VYUKTͳͲ w ࠷ۙϑϩϯτΤϯυ͕ϝΠϯ
͋Δ ͱ͋ΔίʔυΛಡΜͰ͍ͨΒɺ ͜ΜͳίʔυΛݟ͚ͭͨ
w AAͱ͔AAͱ͍͏ܕ͕͋Δʂʁ w BOVNCFSͳΒΘ͔Δ
• 6 2000 ͔͠ڐ͞Εͳ͍ܕ • จࣈྻͷϦςϥϧܕ͋Δ • const b:
'bar' = 'foo'; // Τϥʔ: Type '"foo"' is not assignable to type ‘"bar"'. Ϧςϥϧܕͱ͍͏Β͍͠
• จࣈྻͷϦςϥϧܕΛ࣋ͭstringܕͱͯ͠ѻ͏͜ͱ͕Ͱ͖Δ จࣈྻͷϦςϥϧܕ
• ܕऍΛলུͯͪ͠ΌΜͱਪ͞ΕΔ Ϧςϥϧܕͱܕਪ
͍ಓ
• ϝϯόมͷΛมߋͯ͠΄͘͠ͳ͍ͱ͖ ͍ಓ1
• ϢχΦϯܕͰ݁߹͢Δ ͍ಓ2
͋Γ͕ͱ͏͍͟͝·ͨ͠