yandel 1.1.1 → 1.1.2

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.
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { Component, createContext, createRoot, EffectHandler, Element, ElementRef, HTMLProps, HTMLTags, Portal, StateHandler, Stores, Styles, ValidNodeChild, ValidTemplateReturn, } from "./node";
1
+ export { Component, createContext, createRoot, EffectHandler, Element, ElementRef, HTMLProps, HTMLTags, Portal, StateHandler, Stores, Styles, ValidNode, ValidNodeChild, ValidTemplateReturn, FutureNode, } from "./node";
2
2
  export * from "./tags";
package/dist/node.d.ts CHANGED
@@ -17,7 +17,8 @@ interface SwitchableNode<T extends Node> {
17
17
  switch(t: T): boolean;
18
18
  }
19
19
  type FutureNode = () => ValidNodeChild;
20
- type ValidNodeChild = Node | Component | Component<KeyedObject> | FutureNode | null | string;
20
+ type ValidNode = Node | Component | Component<KeyedObject> | FutureNode;
21
+ type ValidNodeChild = ValidNode | null | string;
21
22
  type ValidTemplateReturn = ValidNodeChild | ValidNodeChild[];
22
23
  type EffectHandler = (() => void) | (() => () => void);
23
24
  type ExcludeFunctions<T> = {
@@ -140,4 +141,4 @@ declare function createRoot<T extends HTMLElement>(root: T): {
140
141
  render: (...children: ValidNodeChild[]) => void;
141
142
  };
142
143
  declare function createContext<T extends KeyedObject>(): Context<T>;
143
- export { Component, createContext, createRoot, EffectHandler, Element, ElementRef, HTMLProps, HTMLTags, HTMLSVGTags, SVGProps, Node, Portal, StateHandler, Stores, Styles, TagNode, ValidNodeChild, ValidTemplateReturn, };
144
+ export { Component, createContext, createRoot, EffectHandler, Element, ElementRef, HTMLProps, HTMLTags, HTMLSVGTags, SVGProps, Node, Portal, StateHandler, Stores, Styles, TagNode, ValidNode, ValidNodeChild, ValidTemplateReturn, FutureNode, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yandel",
3
3
  "description": "A reactive lightweight TS frontend framework",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [