mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
[types/react] Fix regression with PropsWithChildren [The Travis build is lying] (#33462)
* Fix regression * Update index.d.ts * Update index.d.ts
This commit is contained in:
parent
8740be3810
commit
4de5967e61
2
types/react/index.d.ts
vendored
2
types/react/index.d.ts
vendored
@ -427,7 +427,7 @@ declare namespace React {
|
||||
// always pass children as variadic arguments to `createElement`.
|
||||
// In the future, if we can define its call signature conditionally
|
||||
// on the existence of `children` in `P`, then we should remove this.
|
||||
readonly props: Readonly<PropsWithChildren<P>>;
|
||||
readonly props: Readonly<P> & Readonly<{ children?: ReactNode }>;
|
||||
state: Readonly<S>;
|
||||
/**
|
||||
* @deprecated
|
||||
|
||||
Loading…
Reference in New Issue
Block a user