@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.
- package/dist/cjs/type/is-not-empty-array-type/is-not-empty-array.type.d.ts +2 -0
- package/dist/cjs/type/is-not-empty-array-type/is-not-empty-array.type.d.ts.map +1 -0
- package/dist/cjs/type/is-not-empty-array-type/is-not-empty-array.type.js +3 -0
- package/dist/cjs/type/is-not-empty-array-type/is-not-empty-array.type.js.map +1 -0
- package/dist/cjs/type-guard/array/is-empty-array/is-empty-array.d.ts +1 -1
- package/dist/cjs/type-guard/array/is-empty-array/is-empty-array.d.ts.map +1 -1
- package/dist/cjs/type-guard/array/is-empty-array/is-empty-array.js.map +1 -1
- package/dist/cjs/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts +2 -1
- package/dist/cjs/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts.map +1 -1
- package/dist/cjs/type-guard/array/is-not-empty-array/is-not-empty-array.js.map +1 -1
- package/dist/esm/type/is-not-empty-array-type/is-not-empty-array.type.d.ts +2 -0
- package/dist/esm/type/is-not-empty-array-type/is-not-empty-array.type.d.ts.map +1 -0
- package/dist/esm/type/is-not-empty-array-type/is-not-empty-array.type.js +2 -0
- package/dist/esm/type/is-not-empty-array-type/is-not-empty-array.type.js.map +1 -0
- package/dist/esm/type-guard/array/is-empty-array/is-empty-array.d.ts +1 -1
- package/dist/esm/type-guard/array/is-empty-array/is-empty-array.d.ts.map +1 -1
- package/dist/esm/type-guard/array/is-empty-array/is-empty-array.js.map +1 -1
- package/dist/esm/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts +2 -1
- package/dist/esm/type-guard/array/is-not-empty-array/is-not-empty-array.d.ts.map +1 -1
- package/dist/esm/type-guard/array/is-not-empty-array/is-not-empty-array.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +3 -1
|
@@ -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 @@
|
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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;
|
|
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 @@
|
|
|
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 @@
|
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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;
|
|
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.
|
|
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": "
|
|
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
|
|
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
|
+
|