From a4551084b2b6a13971aacbb80fc8def71614c9d9 Mon Sep 17 00:00:00 2001 From: Robin Franken Date: Tue, 20 Feb 2018 13:09:30 +0100 Subject: [PATCH] Updated react-truncate definition Added `trimWhitespace` prop. --- types/react-truncate/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-truncate/index.d.ts b/types/react-truncate/index.d.ts index cb97ccafe7..70cdd4b25d 100644 --- a/types/react-truncate/index.d.ts +++ b/types/react-truncate/index.d.ts @@ -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 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -10,6 +10,7 @@ export interface TruncateProps extends React.HTMLProps { lines?: number | false; ellipsis?: React.ReactNode; onTruncate?(isTruncated: boolean): void; + trimWhitespace?: boolean; } declare class Truncate extends React.Component { }