@zag-js/utils 1.7.0 → 1.8.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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -108,7 +108,7 @@ declare function warn(m: string): void;
|
|
|
108
108
|
declare function warn(c: boolean, m: string): void;
|
|
109
109
|
declare function invariant(m: string): void;
|
|
110
110
|
declare function invariant(c: boolean, m: string): void;
|
|
111
|
-
declare function ensure<T>(c: T | null | undefined, m: string): asserts c is T;
|
|
111
|
+
declare function ensure<T>(c: T | null | undefined, m: () => string): asserts c is T;
|
|
112
112
|
type RequiredBy<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
113
113
|
declare function ensureProps<T, K extends keyof T>(props: T, keys: K[], scope?: string): asserts props is T & RequiredBy<T, K>;
|
|
114
114
|
|
package/dist/index.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ declare function warn(m: string): void;
|
|
|
108
108
|
declare function warn(c: boolean, m: string): void;
|
|
109
109
|
declare function invariant(m: string): void;
|
|
110
110
|
declare function invariant(c: boolean, m: string): void;
|
|
111
|
-
declare function ensure<T>(c: T | null | undefined, m: string): asserts c is T;
|
|
111
|
+
declare function ensure<T>(c: T | null | undefined, m: () => string): asserts c is T;
|
|
112
112
|
type RequiredBy<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
113
113
|
declare function ensureProps<T, K extends keyof T>(props: T, keys: K[], scope?: string): asserts props is T & RequiredBy<T, K>;
|
|
114
114
|
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED