mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(react-dependents): update to ts 2.8 * fix version mismatches * remove package.json * post merge updates * add package.json back again
18 lines
583 B
TypeScript
18 lines
583 B
TypeScript
// 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;
|
|
ellipsis?: React.ReactNode;
|
|
trimWhitespace?: boolean;
|
|
onTruncate?(isTruncated: boolean): void;
|
|
}
|
|
|
|
declare class Truncate extends React.Component<TruncateProps> { }
|
|
export default Truncate;
|