2.3.7 • Published 6 months ago
@types/react-truncate v2.3.7
Installation
npm install --save @types/react-truncate
Summary
This package contains type definitions for react-truncate (https://github.com/One-com/react-truncate).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-truncate.
index.d.ts
// Type definitions for react-truncate 2.3
// Project: https://github.com/One-com/react-truncate
// Definitions by: Matt Perry <https://github.com/mattvperry>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
export interface TruncateProps extends React.HTMLProps<Truncate> {
lines?: number | false | undefined;
ellipsis?: React.ReactNode | undefined;
trimWhitespace?: boolean | undefined;
onTruncate?(isTruncated: boolean): void;
}
declare class Truncate extends React.Component<TruncateProps> { }
export default Truncate;
Additional Details
- Last updated: Wed, 07 Jul 2021 18:31:48 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Matt Perry.