mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 06:50:19 +00:00
Updated react-truncate definition
Added `trimWhitespace` prop.
This commit is contained in:
Vendored
+2
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-truncate 2.1
|
||||
// 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
|
||||
@@ -10,6 +10,7 @@ export interface TruncateProps extends React.HTMLProps<Truncate> {
|
||||
lines?: number | false;
|
||||
ellipsis?: React.ReactNode;
|
||||
onTruncate?(isTruncated: boolean): void;
|
||||
trimWhitespace?: boolean;
|
||||
}
|
||||
|
||||
declare class Truncate extends React.Component<TruncateProps> { }
|
||||
|
||||
Reference in New Issue
Block a user