ResultCallback
Last updated
ResultCallback<Value, Payload>Represents a callback function with parameters, the value that has been checked, the result of this check, and an optional payload.
type ResultCallback<Value = any, Payload = object> = (
result: boolean,
value: Value,
payload?: Payload
) => boolean;Value=anyA generic type variable Value determines value parameter type, by default any.
Payload=objectGeneric type variable Payload indicates payload parameter type, by default object.
result: booleanThe check result of a boolean type of the given value.
value: ValueThe value of the generic type variable Value to check and which the given check result applies.
payload?: PayloadAn optional object of a generic type variable Payload to provide more data.
The return value is a boolean indicating the check result of the given value.
Last updated