redoc
Version:
10 lines (9 loc) • 504 B
TypeScript
export declare const IS_BROWSER: boolean;
export declare function querySelector(selector: string): Element | null;
/**
* Drop everything inside <...> (i.e., tags/elements), and keep the text.
* Unlike browser innerText, this removes newlines; it also doesn't handle
* un-encoded `<` or `>` characters very well, so don't feed it malformed HTML
*/
export declare function html2Str(html: string): string;
export declare function scrollIntoViewIfNeeded(el: HTMLElement, centerIfNeeded?: boolean): void;