From 03be5516a48031bc9fe41a1d6718077aabb21e5b Mon Sep 17 00:00:00 2001 From: Mischa King Date: Wed, 21 Feb 2018 15:11:46 +1000 Subject: [PATCH] Update Type to match v2.3.0 Added trimWhitespace boolean to match version 2.3.0 --- 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..54618a9a8e 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.0 // Project: https://github.com/One-com/react-truncate // Definitions by: Matt Perry // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -9,6 +9,7 @@ import * as React from 'react'; export interface TruncateProps extends React.HTMLProps { lines?: number | false; ellipsis?: React.ReactNode; + trimWhitespace?: boolean; onTruncate?(isTruncated: boolean): void; }