UNPKG

strong-mock

Version:

Type safe mocking library for TypeScript

12 lines (11 loc) 317 B
import type { TypeMatcher } from './matcher'; /** * Match any value, including `undefined` and `null`. * * @example * const fn = mock<(x: number, y: string) => number>(); * when(() => fn(It.isAny(), It.isAny())).thenReturn(1); * * fn(23, 'foobar') === 1 */ export declare const isAny: () => TypeMatcher<any>;