Vitest · Matcher
toBeNumber
toBeNumber is an expectTypeOf matcher that checks whether a value has the static TypeScript type number. It is used in Vitest type tests, which the compiler analyzes instead of running.
Last updated
Syntax
expectTypeOf(value).toBeNumber()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expectTypeOftoBeStringtoBeVoidassertType*.test-d.ts