@react-fabric/utilities 1.0.0-beta.24 → 1.0.0-beta.26

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.
@@ -1,6 +1,6 @@
1
1
  export declare const isUndefined: (value: AnyObject) => value is undefined;
2
2
  export declare const isNull: (value: AnyObject) => value is null;
3
- export declare const isNil: (val: AnyObject) => val is undefined;
3
+ export declare const isNil: (val: AnyObject) => val is null | undefined;
4
4
  export declare const isEmpty: (val: AnyObject) => val is undefined;
5
5
  export declare const isObject: (val: AnyObject) => val is KeyValue<any>;
6
6
  export declare const isArray: <T = any>(val: AnyObject) => val is T[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/utilities",
3
- "version": "1.0.0-beta.24",
3
+ "version": "1.0.0-beta.26",
4
4
  "description": "RUF: Utility package",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -44,5 +44,5 @@
44
44
  "node": ">=18.12.0",
45
45
  "npm": ">=8.19.0"
46
46
  },
47
- "gitHead": "ccdec75c17dcc549e7a0cad3fd1fda2001c5f990"
47
+ "gitHead": "452f821dc8b22c5765b3858cc53ad9d7e2f9bcf1"
48
48
  }
package/src/_isType.ts CHANGED
@@ -29,7 +29,7 @@ export const isNull = (value: AnyObject): value is null => {
29
29
  return value === null;
30
30
  };
31
31
 
32
- export const isNil = (val: AnyObject): val is undefined => {
32
+ export const isNil = (val: AnyObject): val is null | undefined => {
33
33
  return val === undefined || val === null;
34
34
  };
35
35
  export const isEmpty = (val: AnyObject): val is undefined => {