@rnw-community/shared 0.61.0 → 0.62.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.
Files changed (22) hide show
  1. package/dist/cjs/type/is-not-empty-array-type/is-not-empty-array.type.d.ts +2 -0
  2. package/dist/cjs/type/is-not-empty-array-type/is-not-empty-array.type.d.ts.map +1 -0
  3. package/dist/cjs/type/is-not-empty-array-type/is-not-empty-array.type.js +3 -0
  4. package/dist/cjs/type/is-not-empty-array-type/is-not-empty-array.type.js.map +1 -0
  5. package/dist/cjs/type-guard/array/is-empty-array/is-empty-array.d.ts +1 -1
  6. package/dist/cjs/type-guard/array/is-empty-array/is-empty-array.d.ts.map +1 -1
  7. package/dist/cjs/type-guard/array/is-empty-array/is-empty-array.js.map +1 -1
  8. package/dist/cjs/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts +2 -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/is-not-empty-array-type/is-not-empty-array.type.d.ts +2 -0
  12. package/dist/esm/type/is-not-empty-array-type/is-not-empty-array.type.d.ts.map +1 -0
  13. package/dist/esm/type/is-not-empty-array-type/is-not-empty-array.type.js +2 -0
  14. package/dist/esm/type/is-not-empty-array-type/is-not-empty-array.type.js.map +1 -0
  15. package/dist/esm/type-guard/array/is-empty-array/is-empty-array.d.ts +1 -1
  16. package/dist/esm/type-guard/array/is-empty-array/is-empty-array.d.ts.map +1 -1
  17. package/dist/esm/type-guard/array/is-empty-array/is-empty-array.js.map +1 -1
  18. package/dist/esm/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts +2 -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
  22. package/readme.md +3 -1
@@ -0,0 +1,2 @@
1
+ export type IsNotEmptyArray<T> = [T, ...T[]];
2
+ //# sourceMappingURL=is-not-empty-array.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-not-empty-array.type.d.ts","sourceRoot":"","sources":["../../../../src/type/is-not-empty-array-type/is-not-empty-array.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=is-not-empty-array.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-not-empty-array.type.js","sourceRoot":"","sources":["../../../../src/type/is-not-empty-array-type/is-not-empty-array.type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export declare const isEmptyArray: <T>(array: T[] | undefined) => array is T[];
1
+ export declare const isEmptyArray: <T>(array: T[] | null | undefined) => array is T[];
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,6CACyC,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,oDACyC,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,oEAAgE;AAEzD,MAAM,YAAY,GAAG,CAAI,KAAsB,EAAgB,EAAE,CACpE,IAAA,sBAAS,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;AADtD,QAAA,YAAY,gBAC0C"}
1
+ {"version":3,"file":"is-empty-array.js","sourceRoot":"","sources":["../../../../../src/type-guard/array/is-empty-array/is-empty-array.ts"],"names":[],"mappings":";;;AAAA,oEAAgE;AAEzD,MAAM,YAAY,GAAG,CAAI,KAA6B,EAAgB,EAAE,CAC3E,IAAA,sBAAS,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;AADtD,QAAA,YAAY,gBAC0C"}
@@ -1,2 +1,3 @@
1
- export declare const isNotEmptyArray: <T>(array: T[] | undefined) => array is T[];
1
+ import type { IsNotEmptyArray } from '../../../type/is-not-empty-array-type/is-not-empty-array.type';
2
+ export declare const isNotEmptyArray: <T>(array: T[] | null | undefined) => array is IsNotEmptyArray<T>;
2
3
  //# 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,6CACoC,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,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAErG,eAAO,MAAM,eAAe,mEACoC,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,oEAAgE;AAEzD,MAAM,eAAe,GAAG,CAAI,KAAsB,EAAgB,EAAE,CACvE,IAAA,sBAAS,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AADpD,QAAA,eAAe,mBACqC"}
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,oEAAgE;AAIzD,MAAM,eAAe,GAAG,CAAI,KAA6B,EAA+B,EAAE,CAC7F,IAAA,sBAAS,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AADpD,QAAA,eAAe,mBACqC"}
@@ -0,0 +1,2 @@
1
+ export type IsNotEmptyArray<T> = [T, ...T[]];
2
+ //# sourceMappingURL=is-not-empty-array.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-not-empty-array.type.d.ts","sourceRoot":"","sources":["../../../../src/type/is-not-empty-array-type/is-not-empty-array.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=is-not-empty-array.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-not-empty-array.type.js","sourceRoot":"","sources":["../../../../src/type/is-not-empty-array-type/is-not-empty-array.type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export declare const isEmptyArray: <T>(array: T[] | undefined) => array is T[];
1
+ export declare const isEmptyArray: <T>(array: T[] | null | undefined) => array is T[];
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,6CACyC,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,oDACyC,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,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAEhE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAI,KAAsB,EAAgB,EAAE,CACpE,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,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,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAEhE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAI,KAA6B,EAAgB,EAAE,CAC3E,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- export declare const isNotEmptyArray: <T>(array: T[] | undefined) => array is T[];
1
+ import type { IsNotEmptyArray } from '../../../type/is-not-empty-array-type/is-not-empty-array.type';
2
+ export declare const isNotEmptyArray: <T>(array: T[] | null | undefined) => array is IsNotEmptyArray<T>;
2
3
  //# 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,6CACoC,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,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAErG,eAAO,MAAM,eAAe,mEACoC,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,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAEhE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAI,KAAsB,EAAgB,EAAE,CACvE,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,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,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAIhE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAI,KAA6B,EAA+B,EAAE,CAC7F,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,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": "0.61.0",
3
+ "version": "0.62.1",
4
4
  "description": "Shared useful utils and types",
5
5
  "keywords": [
6
6
  "generic utils",
@@ -41,5 +41,5 @@
41
41
  "clear": "rm -rf coverage && rm -rf dist && rm -f *.tsbuildinfo",
42
42
  "clear:deps": "rm -rf ./node_modules && rm -rf ./dist"
43
43
  },
44
- "gitHead": "9a85e7d7dd59564cfdf6f93c9bd5068f551df1e4"
44
+ "gitHead": "fb2aef3216392c86277dc901ff0b519dc2912b53"
45
45
  }
package/readme.md CHANGED
@@ -41,11 +41,13 @@ Utility functions that helps with everyday tasks:
41
41
  Commonly used typescript types:
42
42
 
43
43
  - [ClassType](src/type/class-type/class.type.md)
44
- - [Maybe](src/type/maybe-type/maybe-type.md)
44
+ - [Maybe](src/type/maybe-type/maybe.type.md)
45
45
  - [OnEventFn](src/type/on-event-fn-type/on-event-fn.type.md)
46
46
  - [EmptyFn](src/type/empty-fn-type/empty-fn.type.md)
47
47
  - [Enum](src/type/enum-type/enum-type.md)
48
+ - [IsNotEmptyArray](src/type/is-not-empty-array-type/is-not-empty-array.type.md)
48
49
 
49
50
  ## License
50
51
 
51
52
  This library is licensed under The [MIT License](./LICENSE.md).
53
+