UNPKG

@case-contract-testing/case

Version:

Next-generation contract testing suite

10 lines (9 loc) 454 B
import type { LogContext } from '../../../entities/types'; import { BasicAuth } from './types'; type HttpConnector = { authedGet: <T>(path?: string) => Promise<T>; authedPut: <T, R>(path: string, content: T, context: LogContext) => Promise<R>; authedPost: <T, R>(path: string, content: T, context: LogContext) => Promise<R>; }; export declare const makeAxiosConnector: (baseurl: string, auth: string | BasicAuth) => HttpConnector; export {};