0.3.3 • Published 6 months ago
@types/textr v0.3.3
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 definitions for textr 0.3
// Project: https://github.com/shuvalov-anton/textr
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 23 Dec 2021 23:35:55 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by DefinitelyTyped.