Vitest · Matcher
toMatchTypeOf
toMatchTypeOf checks whether an actual type extends a supplied type. It allows an object to have extra properties, so it is not an exact equality check.
Last updated
Syntax
toMatchTypeOf<T>(expected: T): voidIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expectTypeOftoEqualTypeOftoExtendtoMatchObjectType