mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-05 05:27:59 +08:00
22 lines
446 B
JavaScript
22 lines
446 B
JavaScript
|
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
|