x-runtime-lib 0.9.13 → 0.9.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,7 @@ export type NodePair = {
22
22
  [key: string]: Node;
23
23
  };
24
24
  };
25
+ export declare function syncNodeLite(nodeLite: NodeLite, node: Node): void;
25
26
  export declare function toNodeLite(node: Node, children?: NodeLite[]): NodeLite;
26
27
  export interface View {
27
28
  nodeLites: NodeLite[];
@@ -1,4 +1,8 @@
1
+ import { NodeLite } from '@/types';
1
2
  export declare function isRenderSwitch(key: string): boolean;
2
3
  export declare function isRenderGroup(key: string): boolean;
3
4
  export declare function hasSlot(key: string): boolean;
4
5
  export declare function hasComp(key: string): boolean;
6
+ export declare function toRenderSlots(children: NodeLite[], renderNode: (n: NodeLite, ...params: any[]) => any, ...params: any[]): {
7
+ [key: string]: any;
8
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.9.13",
4
+ "version": "0.9.15",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",