@types/textr
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

Installation

npm install --save @types/textr

Summary

This package contains type definitions for textr (https://github.com/shuvalov-anton/textr).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/textr.

index.d.ts

type TextrArgs = string | object;

interface textr {
    /**
     * Register new middleware and array of middlewares.
     */
    use(...fn: any): textr;
    /**
     * Process given text by the middlewares.
     */
    exec(text: string, options?: object): string;
    /**
     * List of registred middlewares.
     */
    mws(): string[];
}

declare function textr(defaults?: TextrArgs): textr;

export = textr;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/textr

Weekly Downloads

9

Version

0.3.3

License

MIT

Unpacked Size

3.14 kB

Total Files

5

Last publish

Collaborators

  • types