From 233c50cd8cd2e0db4a4eda2f7dba234b43394341 Mon Sep 17 00:00:00 2001 From: Dennis Date: Wed, 4 Sep 2019 06:34:09 +0800 Subject: [PATCH] [@types/react-share] Update types LineIcon & LineShareButton (#38054) * Update. LineShareButton and LineIcon * Update. test case of LineIcon * Update. The version of corresponding lib in header * Fix. tslint errors 'dt-header' --- types/react-share/index.d.ts | 7 ++++++- types/react-share/react-share-tests.ts | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/types/react-share/index.d.ts b/types/react-share/index.d.ts index 6fe45b124c..5baf69f180 100644 --- a/types/react-share/index.d.ts +++ b/types/react-share/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-share 2.1 +// Type definitions for react-share 3.0 // Project: https://github.com/nygardk/react-share#readme // Definitions by: icopp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -149,6 +149,10 @@ export const EmailShareButton: React.StatelessComponent< } >; +export const LineShareButton: React.StatelessComponent< + CommonShareButtonProps & { title?: string } +>; + // ============================================================================= // Share counts // ============================================================================= @@ -203,3 +207,4 @@ export const TumblrIcon: React.StatelessComponent; export const LivejournalIcon: React.StatelessComponent; export const MailruIcon: React.StatelessComponent; export const EmailIcon: React.StatelessComponent; +export const LineIcon: React.StatelessComponent; diff --git a/types/react-share/react-share-tests.ts b/types/react-share/react-share-tests.ts index 268c76b38e..ca25a8aa40 100644 --- a/types/react-share/react-share-tests.ts +++ b/types/react-share/react-share-tests.ts @@ -22,4 +22,5 @@ import { LivejournalIcon, // $ExpectType FunctionComponent MailruIcon, // $ExpectType FunctionComponent EmailIcon, // $ExpectType FunctionComponent + LineIcon, // $ExpectType FunctionComponent } from 'react-share';