@types/truncate-middle
Version:
TypeScript definitions for truncate-middle
28 lines (21 loc) • 799 B
Markdown
# Installation
> `npm install --save @types/truncate-middle`
# Summary
This package contains type definitions for truncate-middle (https://github.com/kahwee/truncate-middle#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/truncate-middle.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/truncate-middle/index.d.ts)
````ts
declare function truncateMiddle(
text: string | null,
frontLength?: number,
backLength?: number,
ellipsis?: string,
): string;
export = truncateMiddle;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
* Dependencies: none
# Credits
These definitions were written by [Gary King](https://github.com/garyking).