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
`4.0.0`: The function uses [isClass](#isclass) in check to check the `className` instead of [`isFunction()`](#isfunction).
628
+
`4.0.0`: The function uses [`isClass()`](#isclass) in check to check the `className` instead of [`isFunction()`](#isfunction).
629
629
630
630
`4.0.3`: Type variable name `Obj` changes to `Class` and the type result to `value` is `Constructor<Class>`.
631
631
632
-
Use `isInstance()` or `is.instance()` to check if **any** value is an `object` of a generic `Obj` type equal to an `instance` of [`Constructor`](#constructor) type.
632
+
Use `isInstance()` or `is.instance()` to check if **any** value is an `object` of a generic `Obj` type equal to an `instance` of [`Constructor<Class>`](#constructor) type.
| value |`any`| Any `value` to compare with the `instance`|
654
-
| instance |[`Constructor<Obj>`](#constructor)| A generic `Obj`[`Constructor`](#constructor) type to create an `instance` to compare with the `value`|
654
+
| instance |[`Constructor<Obj>`](#constructor)| A generic `Obj`[`Constructor<Obj>`](#constructor) type to create an `instance` to compare with the `value`|
655
655
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
| value |`any`| Any `value` to check if its type is from the `type`|
1396
-
| type |[`Types<T>`](#types)| A `string` or generic `Constructor` type from the [`Types`](#types) to check the `value`|
1396
+
| type |[`Types<T>`](#types)| A `string` or generic `Constructor<T>` type from the [`Types`](#types) to check the `value`|
1397
1397
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1398
1398
1399
1399
| Type return | Description |
@@ -1840,7 +1840,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a [
1840
1840
1841
1841
`4.0.0`: The function uses an updated [`isInstance()`](#isinstance) function that uses [`isClass()`](#isclass).
1842
1842
1843
-
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.
1843
+
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<Obj>`](#constructor) type.
| value |`T` extends [`Type`][type]| A [`Type`][type]`value` to guard with the `type`|
2072
-
| type |[`Types<T>`](#types)| A `string` or generic [`Constructor`](#constructor) type from the [`Types`](#types) to check the `value`|
2072
+
| type |[`Types<T>`](#types)| A `string` or generic [`Constructor<T>`](#constructor) type from the [`Types`](#types) to check the `value`|
2073
2073
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
2074
2074
2075
2075
The **return value** is a `boolean` indicating whether or not the `value` is a `type` from the [`Types`](#types).
`4.0.0`: The function uses [isClass](#isclass) in check to check the `className` instead of [`isFunction()`](#isfunction).
628
+
`4.0.0`: The function uses [`isClass()`](#isclass) in check to check the `className` instead of [`isFunction()`](#isfunction).
629
629
630
630
`4.0.3`: Type variable name `Obj` changes to `Class` and the type result to `value` is `Constructor<Class>`.
631
631
632
-
Use `isInstance()` or `is.instance()` to check if **any** value is an `object` of a generic `Obj` type equal to an `instance` of [`Constructor`](#constructor) type.
632
+
Use `isInstance()` or `is.instance()` to check if **any** value is an `object` of a generic `Obj` type equal to an `instance` of [`Constructor<Class>`](#constructor) type.
| value |`any`| Any `value` to compare with the `instance`|
654
-
| instance |[`Constructor<Obj>`](#constructor)| A generic `Obj`[`Constructor`](#constructor) type to create an `instance` to compare with the `value`|
654
+
| instance |[`Constructor<Obj>`](#constructor)| A generic `Obj`[`Constructor<Obj>`](#constructor) type to create an `instance` to compare with the `value`|
655
655
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
| value |`any`| Any `value` to check if its type is from the `type`|
1396
-
| type |[`Types<T>`](#types)| A `string` or generic `Constructor` type from the [`Types`](#types) to check the `value`|
1396
+
| type |[`Types<T>`](#types)| A `string` or generic `Constructor<T>` type from the [`Types`](#types) to check the `value`|
1397
1397
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1398
1398
1399
1399
| Type return | Description |
@@ -1840,7 +1840,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a [
1840
1840
1841
1841
`4.0.0`: The function uses an updated [`isInstance()`](#isinstance) function that uses [`isClass()`](#isclass).
1842
1842
1843
-
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.
1843
+
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<Obj>`](#constructor) type.
| value |`T` extends [`Type`][type]| A [`Type`][type]`value` to guard with the `type`|
2072
-
| type |[`Types<T>`](#types)| A `string` or generic [`Constructor`](#constructor) type from the [`Types`](#types) to check the `value`|
2072
+
| type |[`Types<T>`](#types)| A `string` or generic [`Constructor<T>`](#constructor) type from the [`Types`](#types) to check the `value`|
2073
2073
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
2074
2074
2075
2075
The **return value** is a `boolean` indicating whether or not the `value` is a `type` from the [`Types`](#types).
0 commit comments