UNPKG

401 BTypeScriptView Raw
1import { MatcherOrType } from "./matcher-or-type";
2export interface ISpyMatcher<ExpectedType extends object> {
3 thatMatches<Key extends keyof ExpectedType>(key: Key, value: ExpectedType[Key]): MatcherOrType<ExpectedType>;
4 thatMatches(properties: Partial<ExpectedType>): MatcherOrType<ExpectedType>;
5 thatMatches(delegate: (argument: ExpectedType) => boolean): MatcherOrType<ExpectedType>;
6}