| 123456789101112131415161718192021222324252627 |
- import VNode from "../src/core/vdom/vnode";
- import { Component } from "./component";
- declare type ComponentWithCacheContext = {
- type: "ComponentWithCache";
- bufferIndex: number;
- buffer: Array<string>;
- key: string;
- };
- declare type ElementContext = {
- type: "Element";
- children: Array<VNode>;
- rendered: number;
- endTag: string;
- total: number;
- };
- declare type ComponentContext = {
- type: "Component";
- prevActive: Component;
- };
- declare type RenderState =
- | ComponentContext
- | ComponentWithCacheContext
- | ElementContext;
|