Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ComponentType to preact/compat #4239

Merged
merged 3 commits into from
Dec 22, 2023
Merged

Commits on Dec 21, 2023

  1. Add ComponentType to preact/compat

    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
    ianobermiller committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    ed78832 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2023

  1. Export existing type instad

    Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
    ianobermiller and rschristian committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    c6d1062 View commit details
    Browse the repository at this point in the history
  2. Update index.d.ts

    rschristian committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    be2ca05 View commit details
    Browse the repository at this point in the history