DefinitelyTyped/types/react-share/react-share-tests.ts
Rhys Powell ab11f1b21b Rename React's SFC to 'FunctionalComponent' (#30364)
* renamed SFC to FunctionComponent

* more informative deprecation notice

* add FC as an alias for FunctionComponent

* remove use of deprecated APIs

Revert "remove use of deprecated APIs"

This reverts commit 6bdf2ed88a2ba758060c75720c4fd3960350d706.

remove use of deprecated APIs without reformatting

* add tests to ensure legacy aliases continue working
2018-11-10 07:37:24 +00:00

26 lines
1.6 KiB
TypeScript

import {
FacebookShareCount, // $ExpectType FunctionComponent<ShareCountComponentProps>
GooglePlusShareCount, // $ExpectType FunctionComponent<ShareCountComponentProps>
LinkedinShareCount, // $ExpectType FunctionComponent<ShareCountComponentProps>
PinterestShareCount, // $ExpectType FunctionComponent<ShareCountComponentProps>
VKShareCount, // $ExpectType FunctionComponent<ShareCountComponentProps>
OKShareCount, // $ExpectType FunctionComponent<ShareCountComponentProps>
RedditShareCount, // $ExpectType FunctionComponent<ShareCountComponentProps>
TumblrShareCount, // $ExpectType FunctionComponent<ShareCountComponentProps>
FacebookIcon, // $ExpectType FunctionComponent<IconComponentProps>
TwitterIcon, // $ExpectType FunctionComponent<IconComponentProps>
TelegramIcon, // $ExpectType FunctionComponent<IconComponentProps>
WhatsappIcon, // $ExpectType FunctionComponent<IconComponentProps>
GooglePlusIcon, // $ExpectType FunctionComponent<IconComponentProps>
LinkedinIcon, // $ExpectType FunctionComponent<IconComponentProps>
PinterestIcon, // $ExpectType FunctionComponent<IconComponentProps>
VKIcon, // $ExpectType FunctionComponent<IconComponentProps>
OKIcon, // $ExpectType FunctionComponent<IconComponentProps>
RedditIcon, // $ExpectType FunctionComponent<IconComponentProps>
TumblrIcon, // $ExpectType FunctionComponent<IconComponentProps>
LivejournalIcon, // $ExpectType FunctionComponent<IconComponentProps>
MailruIcon, // $ExpectType FunctionComponent<IconComponentProps>
EmailIcon, // $ExpectType FunctionComponent<IconComponentProps>
} from 'react-share';