[@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'
This commit is contained in:
Dennis
2019-09-04 06:34:09 +08:00
committed by Ron Buckton
parent 5d9a95e72b
commit 233c50cd8c
2 changed files with 7 additions and 1 deletions

View File

@@ -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 <https://github.com/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<IconComponentProps>;
export const LivejournalIcon: React.StatelessComponent<IconComponentProps>;
export const MailruIcon: React.StatelessComponent<IconComponentProps>;
export const EmailIcon: React.StatelessComponent<IconComponentProps>;
export const LineIcon: React.StatelessComponent<IconComponentProps>;

View File

@@ -22,4 +22,5 @@ import {
LivejournalIcon, // $ExpectType FunctionComponent<IconComponentProps>
MailruIcon, // $ExpectType FunctionComponent<IconComponentProps>
EmailIcon, // $ExpectType FunctionComponent<IconComponentProps>
LineIcon, // $ExpectType FunctionComponent<IconComponentProps>
} from 'react-share';