![](/img/trans.png)
[英]Why does SVGR not generate a TypeScript declaration file in my esbuild configuration?
[英]Why does typedoc ignore my interface declaration?
type S=string|undefined;
declare global {
export interface String {
/**
* returns string between borders
* @param borderA - left border
* @param borderB - right border
* @param aIsFirst - true if borderA is first, false if is last
* @param bIsFirst - true if borderB is first, false if is last
*/
between(borderA:S, borderB:S, aIsFirst:boolean, bIsFirst:boolean):S;
}
}
typedoc 命令: typedoc --out./documentation/ src/
它生成帶有 HTML 的文件夾,取自 README.md,但在那里找不到我的界面的痕跡......
TypeDoc 將僅記錄由您的入口點之一導出的內容。 如果您導出 Foo 而不是 IFoo,您將收到一個錯誤,指出它已使用“但未包含在文檔中”...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.