Installation
npm install --save @types/smart-truncate
Summary
This package contains type definitions for smart-truncate (https://github.com/millerized/smart-truncate).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/smart-truncate.
index.d.ts
declare function smartTruncate(
text: string,
length: number,
options?: { position?: number | undefined; mark?: string | undefined },
): string;
export = smartTruncate;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Omer Yalhi.