@rnw-community/shared 0.57.2 → 0.57.3
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/package.json +2 -2
- package/readme.md +15 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnw-community/shared",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.3",
|
|
4
4
|
"description": "Shared useful utils and types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"generic utils",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"clear": "rm -rf coverage && rm -rf dist && rm -f *.tsbuildinfo",
|
|
43
43
|
"clear:deps": "rm -rf ./node_modules && rm -rf ./dist"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "2fe316c09eeabb5427a869bbf9cfbda4b0586fbd"
|
|
46
46
|
}
|
package/readme.md
CHANGED
|
@@ -5,16 +5,6 @@ Generic types, type guards and utilities commonly used across packages.
|
|
|
5
5
|
[](https://badge.fury.io/js/%40rnw-community%2Fshared)
|
|
6
6
|
[](https://www.npmjs.com/package/%40rnw-community%2Fshared)
|
|
7
7
|
|
|
8
|
-
## Types
|
|
9
|
-
|
|
10
|
-
Commonly used typescript types:
|
|
11
|
-
|
|
12
|
-
- [ClassType](src/type/class-type/class.type.md)
|
|
13
|
-
- [Maybe](src/type/maybe-type/maybe-type.md)
|
|
14
|
-
- [OnEventFn](src/type/on-event-fn-type/on-event-fn.type.md)
|
|
15
|
-
- [EmptyFn](src/type/empty-fn-type/empty-fn.type.md)
|
|
16
|
-
- [Enum](src/type/enum-type/enum-type.md)
|
|
17
|
-
|
|
18
8
|
## Type guards
|
|
19
9
|
|
|
20
10
|
Convenient [typescript type guards](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) for everyday usage.
|
|
@@ -40,11 +30,21 @@ This package provides a set of convenient type guards for everyday usage with th
|
|
|
40
30
|
## Utils
|
|
41
31
|
|
|
42
32
|
Utility functions that helps with everyday tasks:
|
|
43
|
-
- [getErrorMessage
|
|
44
|
-
- [emptyFn
|
|
45
|
-
- [cs
|
|
46
|
-
- [getDefined -
|
|
47
|
-
- [getDefinedAsync -
|
|
33
|
+
- [getErrorMessage](src/util/get-error-message/get-error-message.md) - Get typesafe Error object message.
|
|
34
|
+
- [emptyFn](src/util/empty-fn/empty-fn.md) - Useful default react prop callback value.
|
|
35
|
+
- [cs](src/util/cs/cs.md) - Conditional styling util.
|
|
36
|
+
- [getDefined](src/util/get-defined/get-defined.md) - Get fallback value if passed variable is not defined.
|
|
37
|
+
- [getDefinedAsync](src/util/get-defined-async/get-defined-async.md) - Get async fallback value if passed variable is not defined.
|
|
38
|
+
|
|
39
|
+
## Types
|
|
40
|
+
|
|
41
|
+
Commonly used typescript types:
|
|
42
|
+
|
|
43
|
+
- [ClassType](src/type/class-type/class.type.md)
|
|
44
|
+
- [Maybe](src/type/maybe-type/maybe-type.md)
|
|
45
|
+
- [OnEventFn](src/type/on-event-fn-type/on-event-fn.type.md)
|
|
46
|
+
- [EmptyFn](src/type/empty-fn-type/empty-fn.type.md)
|
|
47
|
+
- [Enum](src/type/enum-type/enum-type.md)
|
|
48
48
|
|
|
49
49
|
## License
|
|
50
50
|
|