0.1.1 #2
@@ -329,12 +329,12 @@ export const withOptions: {
|
|||||||
))
|
))
|
||||||
|
|
||||||
export const withRuntime: {
|
export const withRuntime: {
|
||||||
<E, R, P extends {}>(
|
<T extends Component<any, R, any>, R>(
|
||||||
context: React.Context<Runtime.Runtime<R>>,
|
context: React.Context<Runtime.Runtime<R>>,
|
||||||
): {
|
): (self: T) => React.FC<T extends Suspense
|
||||||
(self: Component<E, R, P> & Suspense): React.FC<P & SuspenseProps>
|
? Component.Props<T> & SuspenseProps
|
||||||
(self: Component<E, R, P>): React.FC<P>
|
: Component.Props<T>
|
||||||
}
|
>
|
||||||
<E, R, P extends {}>(
|
<E, R, P extends {}>(
|
||||||
self: Component<E, R, P> & Suspense,
|
self: Component<E, R, P> & Suspense,
|
||||||
context: React.Context<Runtime.Runtime<R>>,
|
context: React.Context<Runtime.Runtime<R>>,
|
||||||
|
|||||||
Reference in New Issue
Block a user