Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

fix: allow functional component types #275

Merged
merged 1 commit into from
Sep 7, 2020
Merged

fix: allow functional component types #275

merged 1 commit into from
Sep 7, 2020

Conversation

joshuaslate
Copy link
Contributor

TypeScript was complaining about me passing functional components React.FC<Props> as the icon for embeds or for tooltips. This change fixed the problem for me locally. I also noticed the second argument of onShowToast (the stable string/message code) wasn't included in the type definition and added it.

@tommoor
Copy link
Member

tommoor commented Sep 7, 2020

Makes sense, currently I only consume the library in a Flow codebase – moving this part to Typescript was a first step in migrating the whole thing, but it makes finding these TS integration issues trickier in the meantime.

@tommoor tommoor merged commit 8c9e3d1 into outline:develop Sep 7, 2020
@joshuaslate joshuaslate deleted the fix/typing-allow-fc branch September 7, 2020 22:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants