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';