Skip to content

Commit 37c8c88

Browse files
docs(README.md): fix guardInstance
1 parent 0a05a9e commit 37c8c88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,6 +2314,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a [
23142314
![update][update]
23152315

23162316
`4.1.0`: Fixes the `value` is not guarded by extending generic type `Obj` variable with `object`.
2317+
23172318
`4.1.1`: Changes the `instance` parameter name to `constructor` cause it represents [`class`][ts-classes] or [`function`][ts-function] constructor.
23182319

23192320
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

Comments
 (0)