@solid-primitives/utils
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -114,3 +114,3 @@ import { Accessor, Setter, onCleanup } from 'solid-js'; | ||
declare function chain<Args extends [] | any[]>(callbacks: { | ||
[Symbol.iterator](): IterableIterator<(...args: Args) => any>; | ||
[Symbol.iterator](): IterableIterator<((...args: Args) => any) | undefined>; | ||
}): (...args: Args) => void; | ||
@@ -117,0 +117,0 @@ declare const clamp: (n: number, min: number, max: number) => number; |
@@ -33,4 +33,6 @@ var __defProp = Object.defineProperty; | ||
return (...args) => { | ||
for (const callback of callbacks) | ||
callback(...args); | ||
for (const callback of callbacks) { | ||
if (typeof callback === "function") | ||
callback(...args); | ||
} | ||
}; | ||
@@ -37,0 +39,0 @@ } |
{ | ||
"name": "@solid-primitives/utils", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A bunch of reactive utility types and functions, for building primitives with Solid.js", | ||
@@ -5,0 +5,0 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27377
682