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