node_modules/preact/src/index.d.ts in isomorfeus-preact-10.7.1 vs node_modules/preact/src/index.d.ts in isomorfeus-preact-10.7.2
- old
+ new
@@ -301,9 +301,12 @@
extends FunctionComponent<{
value: T;
children: ComponentChildren;
}> {}
export interface PreactProvider<T> extends Provider<T> {}
+export type ContextType<C extends Context<any>> = C extends Context<infer T>
+ ? T
+ : never;
export interface Context<T> {
Consumer: Consumer<T>;
Provider: Provider<T>;
displayName?: string;