Sha256: 2d59a02225d78122546599aff4514e1d030ca096352b482cba4c1f88809f2cd0

Contents?: true

Size: 1.26 KB

Versions: 69

Compression:

Stored size: 1.26 KB

Contents

import {
	Component as PreactComponent,
	VNode as PreactVNode,
	FunctionComponent as PreactFunctionComponent
} from '../../src/internal';
import { SuspenseProps } from './suspense';

export { ComponentChildren } from '../..';

export { PreactElement } from '../../src/internal';

export interface Component<P = {}, S = {}> extends PreactComponent<P, S> {
	isReactComponent?: object;
	isPureReactComponent?: true;
	_patchedLifecycles?: true;

	// Suspense internal properties
	_childDidSuspend?(error: Promise<void>, suspendingVNode: VNode): void;
	_suspended: (vnode: VNode) => (unsuspend: () => void) => void;
	_onResolve?(): void;

	// Portal internal properties
	_temp: any;
	_container: PreactElement;
}

export interface FunctionComponent<P = {}> extends PreactFunctionComponent<P> {
	shouldComponentUpdate?(nextProps: Readonly<P>): boolean;
	_forwarded?: boolean;
	_patchedLifecycles?: true;
}

export interface VNode<T = any> extends PreactVNode<T> {
	$$typeof?: symbol | string;
	preactCompatNormalized?: boolean;
}

export interface SuspenseState {
	_suspended?: null | VNode<any>;
}

export interface SuspenseComponent
	extends PreactComponent<SuspenseProps, SuspenseState> {
	_pendingSuspensionCount: number;
	_suspenders: Component[];
	_detachOnNextRender: null | VNode<any>;
}

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
isomorfeus-preact-10.9.0 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.8.2 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.8.1 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.8.0 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.7.3 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.7.2 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.7.1 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.7.0 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.62 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.61 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.60 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.59 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.58 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.57 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.56 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.55 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.54 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.53 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.52 node_modules/preact/compat/src/internal.d.ts
isomorfeus-preact-10.6.51 node_modules/preact/compat/src/internal.d.ts