node_modules/preact/src/index.d.ts in isomorfeus-preact-10.6.62 vs node_modules/preact/src/index.d.ts in isomorfeus-preact-10.7.0
- old
+ new
@@ -66,10 +66,14 @@
dangerouslySetInnerHTML?: {
__html: string;
};
}
+export interface ErrorInfo {
+ componentStack?: string;
+}
+
export type RenderableProps<P, RefType = any> = P &
Readonly<Attributes & { children?: ComponentChildren; ref?: Ref<RefType> }>;
export type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;
export type ComponentFactory<P = {}> = ComponentType<P>;
@@ -128,10 +132,10 @@
componentDidUpdate?(
previousProps: Readonly<P>,
previousState: Readonly<S>,
snapshot: any
): void;
- componentDidCatch?(error: any, errorInfo: any): void;
+ componentDidCatch?(error: any, errorInfo: ErrorInfo): void;
}
export abstract class Component<P, S> {
constructor(props?: P, context?: any);