1.0.5 • Published 6 months ago

@types/smart-truncate v1.0.5

Weekly downloads
6
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for smart-truncate 1.0
// Project: https://github.com/millerized/smart-truncate
// Definitions by: Omer Yalhi <https://github.com/oyalhi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare function smartTruncate(text: string, length: number, options?: { position?: number | undefined; mark?: string | undefined }): string;
export = smartTruncate;

Additional Details

  • Last updated: Tue, 10 Aug 2021 13:31:28 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Omer Yalhi.