Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ts_2_.pdf
Search
YY EFox Team
December 26, 2018
140
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ts_2_.pdf
YY EFox Team
December 26, 2018
Transcript
9 slides
基于Typescript的npm模块开发 分享人 林佳铭 日期 2018-11-29
提纲 1. 为什么选择TS 2. TS+JEST编写轻量级NPM模块的基础流程
为什么选择 TS • 类型系统 • 强大的IDE支持 • JavaScript的超集
静态类型带来哪些好处 类型拥有着提高代码质量和可读性的可靠能力: • 在重构时,类型增加了你的敏捷性。 让编译器捕获错误比在运行时崩溃更好。 • 类型是你能拥有的最好的文档形式之一。 函数签名是定理,而函数体则是证明过程。
IDE支持体现在什么地方 lib.es5.d.ts
JavaScript的超集
使用TS+JEST编写npm模块 文档地址:https://efox-doc.yy.com/efox/guide/
QA
END Thank you
More Decks by YY EFox Team
See All by YY EFox Team
websdk_1_.pdf
efox
0
120
Featured
See All Featured
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
The Curious Case for Waylosing
cassininazir
1
610
The World Runs on Bad Software
bkeepers
PRO
72
12k
Building Applications with DynamoDB
mza
96
7.3k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
480
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
460
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k