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

1.0.5 • Public • Published

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.

/@types/smart-truncate/

    Package Sidebar

    Install

    npm i @types/smart-truncate

    Weekly Downloads

    209

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    2.93 kB

    Total Files

    5

    Last publish

    Collaborators

    • types