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.
22 lines
446 B
22 lines
446 B
8 years ago
|
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
|