mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
[@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:
7
types/react-share/index.d.ts
vendored
7
types/react-share/index.d.ts
vendored
@@ -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>;
|
||||
|
||||
@@ -22,4 +22,5 @@ import {
|
||||
LivejournalIcon, // $ExpectType FunctionComponent<IconComponentProps>
|
||||
MailruIcon, // $ExpectType FunctionComponent<IconComponentProps>
|
||||
EmailIcon, // $ExpectType FunctionComponent<IconComponentProps>
|
||||
LineIcon, // $ExpectType FunctionComponent<IconComponentProps>
|
||||
} from 'react-share';
|
||||
|
||||
Reference in New Issue
Block a user