0.1.2 #3
@@ -49,7 +49,7 @@ export const isSuspense = (u: unknown): u is Suspense => Predicate.hasProperty(u
|
|||||||
export const suspense = <T extends Component.Component<any, any, P>, P extends {}>(
|
export const suspense = <T extends Component.Component<any, any, P>, P extends {}>(
|
||||||
self: T & Component.Component<any, any, ExcludeKeys<P, keyof Suspense.Props>>
|
self: T & Component.Component<any, any, ExcludeKeys<P, keyof Suspense.Props>>
|
||||||
): (
|
): (
|
||||||
& T
|
& Omit<T, keyof Component.Component<Component.Component.Error<T>, Component.Component.Context<T>, P>>
|
||||||
& Component.Component<Component.Component.Error<T>, Component.Component.Context<T>, P & Suspense.Props>
|
& Component.Component<Component.Component.Error<T>, Component.Component.Context<T>, P & Suspense.Props>
|
||||||
& Suspense
|
& Suspense
|
||||||
) => Object.setPrototypeOf(
|
) => Object.setPrototypeOf(
|
||||||
|
|||||||
Reference in New Issue
Block a user