isOfKind
A generic type guard to check the kind of an object.
const result = v.isOfKind<TKind, TObject>(kind, object);
Generics
TKindextends TObject['kind']TObjectextends { kind: string }
Parameters
kindTKindobjectTObject
Returns
resultboolean
© Fabian Hiller
Licensed under the MIT License.
https://valibot.dev/api/isOfKind/