Created
April 30, 2024 19:39
-
-
Save Steellgold/9006726724af88f70b79c9f2186fc138 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { Dispatch, ReactElement, SetStateAction } from "react"; | |
export type Component<Props> = (props?: Props) => ReactElement; | |
export type AsyncComponent<Props> = (props?: Props) => Promise<ReactElement>; | |
export type NPComponent<> = () => ReactElement; | |
export type NPAsyncComponent<> = () => Promise<ReactElement>; | |
export type SetState<T> = Dispatch<SetStateAction<T>>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export * from "./component"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment