Vitest · Matcher
toBeCallableWith
toBeCallableWith checks that a function type can be called with the given arguments. It is used in Vitest type tests and does not perform a runtime call.
Last updated
Syntax
expectTypeOf<FunctionType>().toBeCallableWith(...args)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expectTypeOfparametersparametertoBeConstructibleWith