@rnw-community/shared 1.10.3 → 1.10.5

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.
Files changed (21) hide show
  1. package/dist/cjs/type-guard/array/is-empty-array/is-empty-array.d.ts +1 -1
  2. package/dist/cjs/type-guard/array/is-empty-array/is-empty-array.d.ts.map +1 -1
  3. package/dist/cjs/type-guard/array/is-empty-array/is-empty-array.js.map +1 -1
  4. package/dist/cjs/type-guard/array/is-never.spec-type.d.ts +2 -0
  5. package/dist/cjs/type-guard/array/is-never.spec-type.d.ts.map +1 -0
  6. package/dist/cjs/type-guard/array/is-never.spec-type.js +3 -0
  7. package/dist/cjs/type-guard/array/is-never.spec-type.js.map +1 -0
  8. package/dist/cjs/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts +1 -1
  9. package/dist/cjs/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts.map +1 -1
  10. package/dist/cjs/type-guard/array/is-not-empty-array/is-not-empty-array.js.map +1 -1
  11. package/dist/esm/type-guard/array/is-empty-array/is-empty-array.d.ts +1 -1
  12. package/dist/esm/type-guard/array/is-empty-array/is-empty-array.d.ts.map +1 -1
  13. package/dist/esm/type-guard/array/is-empty-array/is-empty-array.js.map +1 -1
  14. package/dist/esm/type-guard/array/is-never.spec-type.d.ts +2 -0
  15. package/dist/esm/type-guard/array/is-never.spec-type.d.ts.map +1 -0
  16. package/dist/esm/type-guard/array/is-never.spec-type.js +2 -0
  17. package/dist/esm/type-guard/array/is-never.spec-type.js.map +1 -0
  18. package/dist/esm/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts +1 -1
  19. package/dist/esm/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts.map +1 -1
  20. package/dist/esm/type-guard/array/is-not-empty-array/is-not-empty-array.js.map +1 -1
  21. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
- export declare const isEmptyArray: <T extends readonly unknown[] | null | undefined>(array: T) => array is T & readonly [];
1
+ export declare const isEmptyArray: <T>(array: T) => array is T & readonly [];
2
2
  //# sourceMappingURL=is-empty-array.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-empty-array.d.ts","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-empty-array/is-empty-array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,EACxE,OAAO,CAAC,KACT,KAAK,IAAI,CAAC,GAAG,SAAS,EAA0C,CAAC"}
1
+ {"version":3,"file":"is-empty-array.d.ts","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-empty-array/is-empty-array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,KAAK,IAAI,CAAC,GAAG,SAAS,EACzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-empty-array.js","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-empty-array/is-empty-array.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAExC,MAAM,YAAY,GAAG,CACxB,KAAQ,EACgB,EAAE,CAAC,IAAA,kBAAO,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;AAFvD,QAAA,YAAY,gBAE2C"}
1
+ {"version":3,"file":"is-empty-array.js","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-empty-array/is-empty-array.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAExC,MAAM,YAAY,GAAG,CAAI,KAAQ,EAA4B,EAAE,CAClE,IAAA,kBAAO,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;AAD5B,QAAA,YAAY,gBACgB"}
@@ -0,0 +1,2 @@
1
+ export type IsNever<T> = [T] extends [never] ? true : false;
2
+ //# sourceMappingURL=is-never.spec-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-never.spec-type.d.ts","sourceRoot":"","sources":["../../../../src/type-guard/array/is-never.spec-type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=is-never.spec-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-never.spec-type.js","sourceRoot":"","sources":["../../../../src/type-guard/array/is-never.spec-type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export declare const isNotEmptyArray: <T extends readonly unknown[] | null | undefined>(array: T) => array is T & readonly [unknown, ...unknown[]];
1
+ export declare const isNotEmptyArray: <T>(array: T) => array is T & (T extends readonly (infer E)[] ? readonly [E, ...E[]] : readonly [unknown, ...unknown[]]);
2
2
  //# sourceMappingURL=is-not-empty-array.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-not-empty-array.d.ts","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-not-empty-array/is-not-empty-array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,EAC3E,OAAO,CAAC,KACT,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAuC,CAAC"}
1
+ {"version":3,"file":"is-not-empty-array.d.ts","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-not-empty-array/is-not-empty-array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAAI,CAAC,EAC7B,OAAO,CAAC,KACT,KAAK,IAAI,CAAC,GACT,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CACvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-not-empty-array.js","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-not-empty-array/is-not-empty-array.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAExC,MAAM,eAAe,GAAG,CAC3B,KAAQ,EACqC,EAAE,CAAC,IAAA,kBAAO,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AAF1E,QAAA,eAAe,mBAE2D"}
1
+ {"version":3,"file":"is-not-empty-array.js","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-not-empty-array/is-not-empty-array.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAExC,MAAM,eAAe,GAAG,CAC3B,KAAQ,EAEmF,EAAE,CAC7F,IAAA,kBAAO,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AAJ1B,QAAA,eAAe,mBAIW"}
@@ -1,2 +1,2 @@
1
- export declare const isEmptyArray: <T extends readonly unknown[] | null | undefined>(array: T) => array is T & readonly [];
1
+ export declare const isEmptyArray: <T>(array: T) => array is T & readonly [];
2
2
  //# sourceMappingURL=is-empty-array.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-empty-array.d.ts","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-empty-array/is-empty-array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,EACxE,OAAO,CAAC,KACT,KAAK,IAAI,CAAC,GAAG,SAAS,EAA0C,CAAC"}
1
+ {"version":3,"file":"is-empty-array.d.ts","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-empty-array/is-empty-array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,KAAK,IAAI,CAAC,GAAG,SAAS,EACzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-empty-array.js","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-empty-array/is-empty-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,MAAM,CAAC,MAAM,YAAY,GAAG,CACxB,KAAQ,EACgB,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"is-empty-array.js","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-empty-array/is-empty-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAI,KAAQ,EAA4B,EAAE,CAClE,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type IsNever<T> = [T] extends [never] ? true : false;
2
+ //# sourceMappingURL=is-never.spec-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-never.spec-type.d.ts","sourceRoot":"","sources":["../../../../src/type-guard/array/is-never.spec-type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=is-never.spec-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-never.spec-type.js","sourceRoot":"","sources":["../../../../src/type-guard/array/is-never.spec-type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export declare const isNotEmptyArray: <T extends readonly unknown[] | null | undefined>(array: T) => array is T & readonly [unknown, ...unknown[]];
1
+ export declare const isNotEmptyArray: <T>(array: T) => array is T & (T extends readonly (infer E)[] ? readonly [E, ...E[]] : readonly [unknown, ...unknown[]]);
2
2
  //# sourceMappingURL=is-not-empty-array.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-not-empty-array.d.ts","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-not-empty-array/is-not-empty-array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,EAC3E,OAAO,CAAC,KACT,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAuC,CAAC"}
1
+ {"version":3,"file":"is-not-empty-array.d.ts","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-not-empty-array/is-not-empty-array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAAI,CAAC,EAC7B,OAAO,CAAC,KACT,KAAK,IAAI,CAAC,GACT,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CACvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-not-empty-array.js","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-not-empty-array/is-not-empty-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,MAAM,CAAC,MAAM,eAAe,GAAG,CAC3B,KAAQ,EACqC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"is-not-empty-array.js","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-not-empty-array/is-not-empty-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,MAAM,CAAC,MAAM,eAAe,GAAG,CAC3B,KAAQ,EAEmF,EAAE,CAC7F,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnw-community/shared",
3
- "version": "1.10.3",
3
+ "version": "1.10.5",
4
4
  "description": "Shared useful utils and types",
5
5
  "keywords": [
6
6
  "generic utils",
@@ -44,5 +44,5 @@
44
44
  "clear": "rm -rf coverage && rm -rf dist && rm -f *.tsbuildinfo",
45
45
  "clear:deps": "rm -rf ./node_modules && rm -rf ./dist"
46
46
  },
47
- "gitHead": "5893e3f75ef14f0631d6013de33fe1f38267b498"
47
+ "gitHead": "4441ba22e3d44d0c486de827360f258023450784"
48
48
  }