@lifeart/gxt
Version:
<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">
42 lines (41 loc) • 2.19 kB
TypeScript
import { type GenericReturnType, type Component, type ComponentReturnType } from './component';
import { type AnyCell } from './reactive';
import { type BasicListComponent } from './control-flow/list';
export declare const isTag: unique symbol;
export declare const RENDERING_CONTEXT_PROPERTY: unique symbol;
export declare const RENDERED_NODES_PROPERTY: unique symbol;
export declare const COMPONENT_ID_PROPERTY: unique symbol;
export declare function cId(): number;
export declare const $template: "template";
export declare const $context: "_context";
export declare const $nodes: "nodes";
export declare const $args: "args";
export declare const $_debug_args: "_debug_args";
export declare const $fwProp: "$fw";
export declare const noop: () => void;
export declare const FRAGMENT_TYPE = 11;
export declare const IN_SSR_ENV: boolean;
export declare const $DEBUG_REACTIVE_CONTEXTS: string[];
export declare function debugContext(debugName?: string): string;
export declare function isArray(value: unknown): value is Array<any>;
export declare function isFn(value: unknown): value is Function;
export declare function isEmpty(value: unknown): value is null | undefined;
export declare function isPrimitive(value: unknown): value is string | number;
export declare function isTagLike(child: unknown): child is AnyCell;
export declare const BOUNDS: WeakMap<Component<any>, (HTMLElement | Comment)[]>;
export declare function getBounds(ctx: Component<any>): Node[];
export declare function setBounds(component: ComponentReturnType): void;
export declare const TREE: Map<number, Component<any>>;
export declare const CHILD: Map<number, Array<number> | undefined>;
export declare const PARENT: Map<number, number>;
export declare function addToTree(ctx: Component<any>, node: Component<any>, debugName?: string): void;
export declare const LISTS_FOR_HMR: Set<BasicListComponent<any>>;
export declare const IFS_FOR_HMR: Set<() => {
item: GenericReturnType;
set: (item: GenericReturnType) => void;
}>;
export declare const COMPONENTS_HMR: WeakMap<Component<any> | ComponentReturnType, Set<{
parent: any;
instance: ComponentReturnType;
args: Record<string, unknown>;
}>>;