@types/textr
Version:
TypeScript definitions for textr
21 lines (17 loc) • 414 B
TypeScript
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;