Installation
npm install --save @types/wordwrap
Summary
This package contains type definitions for wordwrap (https://github.com/substack/node-wordwrap#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordwrap.
type Wrap = (text: string) => string;
declare function wordwrap(stop: number, params?: { mode?: wordwrap.Mode | undefined }): Wrap;
declare function wordwrap(start: number, stop: number, params?: { mode?: wordwrap.Mode | undefined }): Wrap;
declare function wordwrap(params: wordwrap.Options): Wrap;
declare namespace wordwrap {
interface Options {
stop: number;
start: number;
mode?: Mode | undefined;
}
function hard(stop: number): Wrap;
function hard(start: number, stop: number): Wrap;
type Mode = "soft" | "hard";
}
export = wordwrap;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by ark120202.