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