vue/typescript/ssr.d.ts
2021-04-03 15:07:44 +01:00

28 lines
544 B
TypeScript

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;