@rnw-community/shared 0.61.0 → 0.62.0

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.
@@ -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,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: unknown) => 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,aAAc,OAAO,gCACe,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,KAAc,EAA+B,EAAE,CAC9E,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,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: unknown) => 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,aAAc,OAAO,gCACe,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,KAAc,EAA+B,EAAE,CAC9E,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.0",
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": "ca5f2b054c2555f34964d7a361c6cc003967c88a"
45
45
  }
package/readme.md CHANGED
@@ -41,10 +41,11 @@ 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