guardClass()
Last updated
Was this helpful?
Last updated
Was this helpful?
guardClass()
Guards the value to be a of generic type variable .
Class
extends
Function
A generic type variable Class
constrained by indicates the captured type of the given via the and the parameter of the provided function type.
Payload
extends
object
=
object
The Payload
generic type variable constrained by indicates the type of optional parameter of the supplied function and optional parameter of the function from which it captures its value.
value: Class
callback?: ResultCallback<Class, Payload>
payload?: Payload
value is Class
The of a generic type variable to guard.
The optional callback of type with parameters, the value
that has been checked, the of this check, and of generic type variable with optional properties from the provided , to handle them before the return. By default, it uses function.
An optional of the generic type variable is assigned to the of the given function.
The return type is a as the result of its statement indicating the is a generic type variable by default of type captured from the supplied .
The return value is a indicating whether the provided is a of a generic type variable .