Skip to content

.d.ts: re-export FunctionComponent from preact/compat#2087

Merged
JoviDeCroock merged 2 commits into
preactjs:masterfrom
jokester:reexport-fc-from-preact-compat
Nov 14, 2019
Merged

.d.ts: re-export FunctionComponent from preact/compat#2087
JoviDeCroock merged 2 commits into
preactjs:masterfrom
jokester:reexport-fc-from-preact-compat

Conversation

@jokester

@jokester jokester commented Nov 4, 2019

Copy link
Copy Markdown
Contributor

to make preact/compat a more complete replacement of @types/react


Propose to add these aliases, to make (IMHO common) code like

const SomeComponent: React.FC<Props> = ...

work when we import React from 'preact/compat'.

@jokester jokester changed the title dts: reexport FunctionComponent from preact/compat .d.ts: re-export FunctionComponent from preact/compat Nov 4, 2019
@coveralls

coveralls commented Nov 4, 2019

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.1%) to 100.0% when pulling d2de8b3 on jokester:reexport-fc-from-preact-compat into fa95880 on preactjs:master.

to make `preact/compat` a more complete replacement of `@types/react`
@jokester jokester force-pushed the reexport-fc-from-preact-compat branch from 4f6f931 to 01f4ff6 Compare November 12, 2019 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants