mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
11 lines
418 B
TypeScript
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
|
|
}
|
|
}
|