Definition for sbd library

This commit is contained in:
Brian Cort
2019-03-26 17:13:56 -04:00
parent 1a2118b087
commit 330f8625ff

16
types/sbd/index.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
// Type definitions for sbd 1.0.15
// Project: https://github.com/Tessmore/sbd
// Definitions by: Brian Cort <https://github.com/thatcort>
export as namespace sbd;
export interface Options {
newline_boundaries?: boolean;
html_boundaries?: boolean;
sanitize?: boolean;
allowed_tags?: false | string[];
preserve_whitespace?: boolean;
abbreviations?: string[];
}
export function sentences(text: string, options?: Options): string[];