mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-17 06:12:48 +00:00
17 lines
580 B
TypeScript
17 lines
580 B
TypeScript
// Type definitions for sbd 1.0
|
|
// Project: http://github.com/tessmore/sbd
|
|
// Definitions by: Brian Cort <https://github.com/thatcort>, Caroline Artz <https://github.com/carolineartz>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export interface Options {
|
|
newline_boundaries?: boolean;
|
|
html_boundaries?: boolean;
|
|
html_boundaries_tags?: string[];
|
|
sanitize?: boolean;
|
|
allowed_tags?: false | string[];
|
|
preserve_whitespace?: boolean;
|
|
abbreviations?: string[];
|
|
}
|
|
|
|
export function sentences(text: string, options?: Options): string[];
|