You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/src/generators/dom/interfaces.ts

23 lines
496 B

import { DomGenerator } from './index';
import Block from './Block';
import { Node } from '../../interfaces';
export interface State {
namespace: string;
parentNode: string;
parentNodes: string;
parentNodeName?: string;
inEachBlock?: boolean;
allUsedContexts?: string[];
usesComponent?: boolean;
selectBindingDependencies?: string[];
}
export type Visitor = (
generator: DomGenerator,
block: Block,
state: State,
node: Node,
elementStack: Node[],
componentStack: Node[]
) => void;