Gitako/src/react-override.d.ts
2022-08-20 15:49:10 +08:00

11 lines
418 B
TypeScript

/* eslint-disable @typescript-eslint/no-explicit-any */
// Patch the removed `children` prop
declare namespace React {
interface FunctionComponent<P> {
(props: PropsWithChildren<P>, context?: any): ReactElement<any, any> | null
propTypes?: WeakValidationMap<P> | undefined
contextTypes?: ValidationMap<any> | undefined
defaultProps?: Partial<P> | undefined
displayName?: string | undefined
}
}