Why does typedoc ignore my interface declaration?

2.6k views Asked by At
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...

1

There are 1 answers

0
Stephen On

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