UNPKG

inferno

Version:

An extremely fast, React-like JavaScript library for building modern user interfaces

43 lines (42 loc) 2.38 kB
import type { Inferno, InfernoNode, VNode } from './../../core/types'; export declare const EMPTY_OBJ: {}; export declare const Fragment: Inferno.ExoticComponent<{ children?: InfernoNode; }>; export interface MoveQueueItem { parent: Element; dom: Element; next: Element; fn: () => void; } export declare class AnimationQueues { componentDidAppear: Array<() => void>; componentWillDisappear: Array<() => void>; componentWillMove: MoveQueueItem[]; } export declare function normalizeEventName(name: any): keyof DocumentEventMap; export declare function appendChild(parentDOM: any, dom: any): void; export declare function insertOrAppend(parentDOM: Element, newNode: any, nextNode: any): void; export declare function documentCreateElement(tag: any, isSVG: boolean): Element; export declare function replaceChild(parentDOM: Element, newDom: any, lastDom: any): void; export declare function removeChild(parentDOM: Element, childNode: Element): void; export declare function callAll(arrayFn: Array<() => void>): void; export declare function findDOMFromVNode(vNode: VNode, startEdge: boolean): Element | null; export declare function callAllAnimationHooks(animationQueue: Array<() => void>, callback?: () => void): void; export declare function callAllMoveAnimationHooks(animationQueue: MoveQueueItem[]): void; export declare function clearVNodeDOM(vNode: VNode | null, parentDOM: Element, deferredRemoval: boolean): void; export declare function removeVNodeDOM(vNode: VNode, parentDOM: Element, animations: AnimationQueues): void; export declare function moveVNodeDOM(parentVNode: any, vNode: any, parentDOM: any, nextNode: any, animations: AnimationQueues): void; export declare function getComponentName(instance: any): string; export declare function createDerivedState<TState>(instance: any, nextProps: any, state: TState): TState; export declare const renderCheck: { v: boolean; }; export declare const options: { createVNode: ((vNode: VNode) => void) | null; reactStyles?: boolean; }; export declare function setTextContent(dom: Element, children: any): void; export declare function isLastValueSameLinkEvent(lastValue: any, nextValue: any): boolean; export declare function mergeUnsetProperties<TTo, TFrom>(to: TTo, from: TFrom): TTo & TFrom; export declare function safeCall1(method: Function | null | undefined, arg1: any): boolean;