AnnVoV / blog

24 stars 2 forks source link

学习 Typescript 遇到的一些问题记录 #16

Open AnnVoV opened 6 years ago

AnnVoV commented 6 years ago

1.区分TS中的namespace和module(这个也是困惑了蛮久) https://idom.me/articles/838.html 2.Typescript handbook https://zhongsp.gitbooks.io/typescript-handbook/content/doc/handbook/Generics.html 3.Typescript 进阶玩法 https://idom.me/articles/836.html

typescript 声明文件相关

4.模块还是命名空间 https://blog.higan.me/namespace-and-module-in-typescript/ 5.What is the difference between declare namespace and declare module https://stackoverflow.com/questions/41932585/what-is-the-difference-between-declare-namespace-and-declare-module 6.(重要)external module v.s. global definition https://github.com/typings/typings/issues/748 7.官方文档: https://www.typescriptlang.org/docs/handbook/namespaces-and-modules.html 8.[翻译] DefinitelyTyped 项目定义 .d.ts文件 http://bbs.egret.com/thread-11885-1-1.html 9.typescript 声明文件最佳实践(重要) https://definitelytyped.org/guides/best-practices.html 10.typescript已经有模块系统了,为什么还需要namespace?(解释的非常好) https://www.zhihu.com/question/65676593 11.Typescript 两种声明文件的区别和根本意义(重要 醍醐灌顶) https://my.oschina.net/fenying/blog/747184 12.How to create your own TypeScript type definition files (.d.ts) and contribute to DefinitelyTyped on GitHub http://blog.wolksoftware.com/contributing-to-definitelytyped 13.如何编写一个d.ts文件(总结的很好) https://segmentfault.com/a/1190000009247663#articleHeader5