@contract-case/case-core-plugin-http
Version:
ContractCase core HTTP plugin, providing HTTP matchers and mocks
13 lines • 505 B
TypeScript
import { MatchContext } from '@contract-case/case-plugin-base';
type FieldDescriptor<T extends object> = {
field: keyof T;
type: string;
notNull?: boolean;
};
type DataAssertions<T extends object> = {
assertFieldPresent: (f: FieldDescriptor<T>) => void;
assertIfFieldPresent: (f: FieldDescriptor<T>) => void;
};
export declare const makeAssertionsOn: <T extends object>(data: T, name: string, context: MatchContext) => DataAssertions<T>;
export {};
//# sourceMappingURL=assert.d.ts.map