[TypeScript] Export public types from your library
生活随笔
收集整理的這篇文章主要介紹了
[TypeScript] Export public types from your library
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
If you're a library author, it's useful to expose your public types as interfaces, to allow your consumers to extend them if needed.
?
For example:
?
To resolve the issues, we can do :
// typings.d.tsinterface JQuery {hideChildren(): JQuery }?
轉(zhuǎn)載于:https://www.cnblogs.com/Answer1215/p/10289364.html
總結(jié)
以上是生活随笔為你收集整理的[TypeScript] Export public types from your library的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: meta标签的用处详解
- 下一篇: xml和xml解析