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
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2314,6 +2314,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a [
2314
2314
![update][update]
2315
2315
2316
2316
`4.1.0`: Fixes the `value` is not guarded by extending generic type `Obj` variable with `object`.
2317
+
2317
2318
`4.1.1`: Changes the `instance` parameter name to `constructor` cause it represents [`class`][ts-classes] or [`function`][ts-function] constructor.
2318
2319
2319
2320
Use `guardInstance()` or `guard.is.instance()` to guard the `value` to be an `object` of a generic `Obj` type and an `instance` of [`Constructor`][constructor] type.
0 commit comments