简体   繁体   中英

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 command: typedoc --out./documentation/ src/

It generates the folder with HTML, taken from README.md, but no traces of my interface is ever found there...

TypeDoc will only document things that are exported by one of your entry points. If your exporting Foo but not IFoo, you will receive an error that it's used "but not included in the documentation"...

See https://github.com/TypeStrong/typedoc/issues/1739

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM