@srfnstack/fntags 0.5.0 → 0.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srfnstack/fntags",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "author": "Robert Kempton <r@snow87.com>",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/srfnstack/fntags",
package/src/fntags.d.mts CHANGED
@@ -44,7 +44,7 @@ export function fntemplate(templateFn: (any: any) => Node): (any: any) => Node;
44
44
  * @typedef FnStateObj A container for a state value that can be bound to.
45
45
  * @property {(element?: ()=>(Node|any))=>Node} bindAs Bind this state to the given element function. This causes the element to be replaced when state changes.
46
46
  * If called with no parameters, the state's value will be rendered as an element.
47
- * @property {(parent: ()=>(Node|any)|any|Node, element: (childState: FnState)=>(Node|any))=>Node} bindChildren Bind the values of this state to the given element.
47
+ * @property {(parent: (()=>(Node|any))|any|Node, element: (childState: FnState)=>(Node|any))=>Node} bindChildren Bind the values of this state to the given element.
48
48
  * Values are items/elements of an array.
49
49
  * If the current value is not an array, this will behave the same as bindAs.
50
50
  * @property {(prop: string)=>Node} bindProp Bind to a property of an object stored in this state instead of the state itself.
@@ -127,7 +127,7 @@ export type FnStateObj<T> = {
127
127
  * Values are items/elements of an array.
128
128
  * If the current value is not an array, this will behave the same as bindAs.
129
129
  */
130
- bindChildren: (parent: () => (Node | any) | any | Node, element: (childState: any) => (Node | any)) => Node;
130
+ bindChildren: (parent: (() => (Node | any)) | any | Node, element: (childState: any) => (Node | any)) => Node;
131
131
  /**
132
132
  * Bind to a property of an object stored in this state instead of the state itself.
133
133
  * Shortcut for `mystate.bindAs((current)=> current[prop])`
@@ -1 +1 @@
1
- {"version":3,"file":"fntags.d.mts","sourceRoot":"","sources":["fntags.mjs"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,2DAL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I,KAAK,IAAI;;;;oBAC7C,OAAO,KAAG,EAAE;;;;eACrB,OAAO;;;;;sDAKqB,CAAC,KAAG,CAAC"}
package/src/fntags.mjs CHANGED
@@ -150,7 +150,7 @@ export function fntemplate (templateFn) {
150
150
  * @typedef FnStateObj A container for a state value that can be bound to.
151
151
  * @property {(element?: ()=>(Node|any))=>Node} bindAs Bind this state to the given element function. This causes the element to be replaced when state changes.
152
152
  * If called with no parameters, the state's value will be rendered as an element.
153
- * @property {(parent: ()=>(Node|any)|any|Node, element: (childState: FnState)=>(Node|any))=>Node} bindChildren Bind the values of this state to the given element.
153
+ * @property {(parent: (()=>(Node|any))|any|Node, element: (childState: FnState)=>(Node|any))=>Node} bindChildren Bind the values of this state to the given element.
154
154
  * Values are items/elements of an array.
155
155
  * If the current value is not an array, this will behave the same as bindAs.
156
156
  * @property {(prop: string)=>Node} bindProp Bind to a property of an object stored in this state instead of the state itself.