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
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1696,7 +1696,7 @@ guardClass<Class>(FUNCTION); // type error
1696
1696
1697
1697
![update][update]
1698
1698
1699
-
`4.0.0`: The function deny[classes][classes] in check cause of updated [`isFunction`](#isfunction).
1699
+
`4.0.0`: The function denies[classes][classes] in check cause of updated [`isFunction`](#isfunction).
1700
1700
1701
1701
Use `guardFunction()` or `guard.is.function()` to guard the `value` to be a [`Func`](#func) type.
1702
1702
@@ -1718,6 +1718,10 @@ The **return value** is a `boolean` indicating whether or not the `value` is a [
1718
1718
1719
1719
### guardInstance
1720
1720
1721
+
![update][update]
1722
+
1723
+
`4.0.0`: The function uses an updated [`isInstance()`](#isinstance) function that uses [`isClass()`](#isclass).
1724
+
1721
1725
Use `guardInstance()` or `guard.is.instance()` to guard the `value` to be an `object` of a generic `Obj` type equal to an `instance` of [`Constructor`](#constructor) type.
1722
1726
1723
1727
```typescript
@@ -1819,7 +1823,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is an
1819
1823
1820
1824
![update][update]
1821
1825
1822
-
`4.0.0`: The function uses [`isObjectKey`](#isobjectkey) function to check the `value` and has [`callback`](#resultcallback) as optional.
1826
+
`4.0.0`: The function uses [`isObjectKey`](#isobjectkey) function to check the `value` and has [`callback`](#resultcallback) as optional instead of the [`guardObject`](#guardobject).
1823
1827
1824
1828
Use `guardObjectKey()` or `guard.is.objectKey()` to guard the `value` to be an `object` of a generic `Obj` type that contains the `key` property of the [`Key`][key] type.
Copy file name to clipboardExpand all lines: packages/type/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1696,7 +1696,7 @@ guardClass<Class>(FUNCTION); // type error
1696
1696
1697
1697
![update][update]
1698
1698
1699
-
`4.0.0`: The function deny[classes][classes] in check cause of updated [`isFunction`](#isfunction).
1699
+
`4.0.0`: The function denies[classes][classes] in check cause of updated [`isFunction`](#isfunction).
1700
1700
1701
1701
Use `guardFunction()` or `guard.is.function()` to guard the `value` to be a [`Func`](#func) type.
1702
1702
@@ -1718,6 +1718,10 @@ The **return value** is a `boolean` indicating whether or not the `value` is a [
1718
1718
1719
1719
### guardInstance
1720
1720
1721
+
![update][update]
1722
+
1723
+
`4.0.0`: The function uses an updated [`isInstance()`](#isinstance) function that uses [`isClass()`](#isclass).
1724
+
1721
1725
Use `guardInstance()` or `guard.is.instance()` to guard the `value` to be an `object` of a generic `Obj` type equal to an `instance` of [`Constructor`](#constructor) type.
1722
1726
1723
1727
```typescript
@@ -1819,7 +1823,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is an
1819
1823
1820
1824
![update][update]
1821
1825
1822
-
`4.0.0`: The function uses [`isObjectKey`](#isobjectkey) function to check the `value` and has [`callback`](#resultcallback) as optional.
1826
+
`4.0.0`: The function uses [`isObjectKey`](#isobjectkey) function to check the `value` and has [`callback`](#resultcallback) as optional instead of the [`guardObject`](#guardobject).
1823
1827
1824
1828
Use `guardObjectKey()` or `guard.is.objectKey()` to guard the `value` to be an `object` of a generic `Obj` type that contains the `key` property of the [`Key`][key] type.
0 commit comments