Skip to content

Add ComponentType to preact/compat#4239

Merged
rschristian merged 3 commits intopreactjs:mainfrom
ianobermiller:patch-1
Dec 22, 2023
Merged

Add ComponentType to preact/compat#4239
rschristian merged 3 commits intopreactjs:mainfrom
ianobermiller:patch-1

Conversation

@ianobermiller
Copy link
Copy Markdown
Contributor

Add the ComponentType type that represents a class or function component with optional props to mirror the same type in @types/react: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0818c3f7de545c6b6431e9745dd9910618bba918/types/react/index.d.ts#L43

Add the `ComponentType` type that represents a class or function component with optional props to mirror the same type in `@types/react`: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0818c3f7de545c6b6431e9745dd9910618bba918/types/react/index.d.ts#L43
Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 99.464%. remained the same
when pulling be2ca05 on ianobermiller:patch-1
into 4f2a04f on preactjs:main.

@rschristian rschristian merged commit f963509 into preactjs:main Dec 22, 2023
@rschristian
Copy link
Copy Markdown
Member

Thanks!

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.

3 participants