issues
search
Yu-Jack
/
yu-jack.github.io
This is a blog.
https://yu-jack.github.io/
9
stars
0
forks
source link
在不同情況下寫宣告檔案的幾種方式
#5
Open
Yu-Jack
opened
3 years ago
Yu-Jack
commented
3 years ago
JS + JSDoc with TS server typing check in VSCode
pure TS only for runtime use
pure TS library for other people usage as third-party library
pure TS for extending third-party library use
參考資料
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html#import-types
https://willh.gitbook.io/typescript-tutorial/basics/declaration-files
https://stackoverflow.com/questions/39040108/import-class-in-definition-file-d-ts
參考資料