[TOC]
# [在 Typescript 2.0 中使用 @types 類型定義](http://www.bubuko.com/infodetail-1876184.html)
2.0 以后不再需要 `typings`或者`tsd`了,所有的 type 都只需要用 npm 來安裝:
~~~
npm install -s @types/<library name>
~~~
如果仍需要親自寫聲明文件,可以從[這里](http://www.typescriptlang.org/docs/handbook/writing-declaration-files.html)開始。
無論何時,你安裝一個依賴時,都應該試著安裝 @types 包,或者你想查看是否有被支持的類型,你可以在 [TypeSearch](https://link.jianshu.com/?t=https://microsoft.github.io/TypeSearch/) 網站上查看。
鏈接:https://www.zhihu.com/question/50780469/
# 使用typescript寫node的一些小技巧
https://segmentfault.com/a/1190000007183406
# 使用Visual Studio Code搭建TypeScript開發環境
http://blog.csdn.net/wlanye/article/details/74566179
# “Use Strict” needed in a TypeScript file?
https://stackoverflow.com/questions/31391760/use-strict-needed-in-a-typescript-file
[從 JavaScript 到 TypeScript 6 - Vue 引入 TypeScript](https://tasaid.com/Blog/20171011233132.html)
# 裝飾器的概念
新的 decorator 語法 `@xxx` 的形式非常類似 Java Annotation,不過后者作為靜態語言,其 Annotation 的實現機制以及使用場景和 ES decorators 都有區別,這是一個題外話。事實上,ES decorators 完全借鑒自 Python 的 decorators。
[ES Decorators簡介](http://web.jobbole.com/82862/)