16 lines
311 B
TypeScript
16 lines
311 B
TypeScript
import nlp from 'compromise'
|
|
type View = ReturnType<typeof nlp>
|
|
|
|
interface ParagraphView extends View {
|
|
}
|
|
|
|
export interface ParagraphMethods {
|
|
/** */
|
|
paragraphs(): ParagraphView
|
|
}
|
|
|
|
/** extended compromise lib **/
|
|
declare const nlpParagraphs: nlp.TypedPlugin<ParagraphMethods>
|
|
|
|
export default nlpParagraphs
|