@atomico/hooks
Advanced tools
Comparing version 3.47.0 to 3.48.0
{ | ||
"name": "@atomico/hooks", | ||
"description": "Series of utilities in hooks format to extend the operation of Atomico", | ||
"version": "3.47.0", | ||
"version": "3.48.0", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "workspaces": [ |
@@ -6,5 +6,5 @@ /** | ||
* @param {(node:ChildNode)=>boolean} [filter] - allows you to filter the nodes to be associated only when they change | ||
* @returns {T[]} | ||
* @returns {import("atomico").Ref<T>["current"][]} | ||
*/ | ||
export function useSlot<T extends ChildNode>(ref: import("atomico").Ref<HTMLSlotElement>, filter?: (node: ChildNode) => boolean): T[]; | ||
export function useSlot<T extends ChildNode>(ref: import("atomico").Ref<HTMLSlotElement>, filter?: (node: ChildNode) => boolean): (T extends import("atomico/types/dom.js").Atomico<any, any> ? InstanceType<T> : T)[]; | ||
/** | ||
@@ -16,4 +16,4 @@ * creates a persistent list of nodes from a source with the intention of | ||
* @param {(node:ChildNode)=>boolean} [filter] - allows you to filter the nodes to be associated only when they change | ||
* @returns {T[]} | ||
* @returns {import("atomico").Ref<T>["current"][]} | ||
*/ | ||
export function useProxySlot<T extends ChildNode>(ref: import("atomico").Ref<HTMLSlotElement>, filter?: (node: ChildNode) => boolean): T[]; | ||
export function useProxySlot<T extends ChildNode>(ref: import("atomico").Ref<HTMLSlotElement>, filter?: (node: ChildNode) => boolean): (T extends import("atomico/types/dom.js").Atomico<any, any> ? InstanceType<T> : T)[]; |
72125