You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1927,7 +1927,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a `
1927
1927
1928
1928
`4.0.0`: The function has a properly working callback cause of the updated [`isObject`](#isobject).
1929
1929
1930
-
`4.0.3`: Fix type variable `Obj` default value is not set to cause of it always being picked from the `value`.
1930
+
`4.0.3`: Fix type variable `Obj` default value is set to cause of it always being picked from the `value`.
1931
1931
1932
1932
Use `guardObject()` or `guard.is.object()` to guard the `value` to be an `object` of a generic `Obj` type.
1933
1933
@@ -1959,7 +1959,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is an
1959
1959
1960
1960
`4.0.1`: Fix guards the `key` by changing its type to `keyof Obj` instead of just a [`Key`][key].
1961
1961
1962
-
`4.0.3`: Fix type variable `Obj` default value is not set to cause of it always being picked from the `value`.
1962
+
`4.0.3`: Fix type variable `Obj` default value is set to cause of it always being picked from the `value`.
1963
1963
1964
1964
Use `guardObjectKey()` or `guard.is.objectKey()` to guard the `value` to be an `object` of a generic `Obj` type that contains the `key`.
1965
1965
@@ -1987,22 +1987,22 @@ The **return value** is a `boolean` indicating whether or not the `value` is an
1987
1987
1988
1988
### guardPrimitive
1989
1989
1990
-
Use `guardPrimitive()` or `guard.is.primitive()` to guard the `value` to be the [`Primitive`][primitive] from a `type` of the [`Primitives`][primitives].
1990
+
Use `guardPrimitive()` or `guard.is.primitive()` to guard the `value` to be the [`Primitive`][primitive] from a `type` of the [`Primitives`](#primitives).
|`Type` extends [`Primitive`][primitive]| From the `value`| Guarded with [`Primitive`][primitive] type `Type` variable from the `value` to the return type `value` is `Type`|
|`Type` extends [`Primitive`](#primitive)| From the `value`| Guarded with [`Primitive`](#primitive) type `Type` variable from the `value` to the return type `value` is `Type`|
| value |`Type` extends [`Primitive`][primitive]| A `Primitive` type `value` to guard |
2005
-
| type |[`Primitives`][primitives]| A `string` type from the [`Primitives`][primitives] to check the `value`|
2004
+
| value |`Type` extends [`Primitive`](#primitive)| A `Primitive` type `value` to guard |
2005
+
| type |[`Primitives`](#primitives)| A `string` type from the [`Primitives`](#primitives) to check the `value`|
2006
2006
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
2007
2007
2008
2008
The **return value** is a `boolean` indicating whether or not the `value` is the [`Primitive`][primitive] from the `type`.
Copy file name to clipboardExpand all lines: packages/type/README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1927,7 +1927,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a `
1927
1927
1928
1928
`4.0.0`: The function has a properly working callback cause of the updated [`isObject`](#isobject).
1929
1929
1930
-
`4.0.3`: Fix type variable `Obj` default value is not set to cause of it always being picked from the `value`.
1930
+
`4.0.3`: Fix type variable `Obj` default value is set to cause of it always being picked from the `value`.
1931
1931
1932
1932
Use `guardObject()` or `guard.is.object()` to guard the `value` to be an `object` of a generic `Obj` type.
1933
1933
@@ -1959,7 +1959,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is an
1959
1959
1960
1960
`4.0.1`: Fix guards the `key` by changing its type to `keyof Obj` instead of just a [`Key`][key].
1961
1961
1962
-
`4.0.3`: Fix type variable `Obj` default value is not set to cause of it always being picked from the `value`.
1962
+
`4.0.3`: Fix type variable `Obj` default value is set to cause of it always being picked from the `value`.
1963
1963
1964
1964
Use `guardObjectKey()` or `guard.is.objectKey()` to guard the `value` to be an `object` of a generic `Obj` type that contains the `key`.
1965
1965
@@ -1987,22 +1987,22 @@ The **return value** is a `boolean` indicating whether or not the `value` is an
1987
1987
1988
1988
### guardPrimitive
1989
1989
1990
-
Use `guardPrimitive()` or `guard.is.primitive()` to guard the `value` to be the [`Primitive`][primitive] from a `type` of the [`Primitives`][primitives].
1990
+
Use `guardPrimitive()` or `guard.is.primitive()` to guard the `value` to be the [`Primitive`][primitive] from a `type` of the [`Primitives`](#primitives).
|`Type` extends [`Primitive`][primitive]| From the `value`| Guarded with [`Primitive`][primitive] type `Type` variable from the `value` to the return type `value` is `Type`|
|`Type` extends [`Primitive`](#primitive)| From the `value`| Guarded with [`Primitive`](#primitive) type `Type` variable from the `value` to the return type `value` is `Type`|
| value |`Type` extends [`Primitive`][primitive]| A `Primitive` type `value` to guard |
2005
-
| type |[`Primitives`][primitives]| A `string` type from the [`Primitives`][primitives] to check the `value`|
2004
+
| value |`Type` extends [`Primitive`](#primitive)| A `Primitive` type `value` to guard |
2005
+
| type |[`Primitives`](#primitives)| A `string` type from the [`Primitives`](#primitives) to check the `value`|
2006
2006
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
2007
2007
2008
2008
The **return value** is a `boolean` indicating whether or not the `value` is the [`Primitive`][primitive] from the `type`.
0 commit comments