mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
788 B
TypeScript
26 lines
788 B
TypeScript
// Type definitions for string-strip-html 4.3
|
|
// Project: https://gitlab.com/codsen/codsen/tree/master/packages/string-strip-html
|
|
// Definitions by: Chris Shaw <https://github.com/chris-shaw-2011>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare function stringStripHtml(str: string, originalOpts?: Options): string;
|
|
|
|
interface Options {
|
|
ignoreTags?: string[];
|
|
onlyStripTags?: string[];
|
|
stripTogetherWithTheirContents?: string[] | false;
|
|
skipHtmlDecoding?: boolean;
|
|
returnRangeOnly?: boolean;
|
|
trimOnlySpaces?: boolean;
|
|
dumpLinkHrefsNearby?: DumpLinkHrefsNearby | false;
|
|
}
|
|
|
|
interface DumpLinkHrefsNearby {
|
|
enabled?: boolean;
|
|
putOnNewLine?: boolean;
|
|
wrapHeads?: string;
|
|
wrapTails?: string;
|
|
}
|
|
|
|
export = stringStripHtml;
|