UNPKG

nock

Version:

HTTP server mocking and expectations library for Node.js

14 lines (13 loc) • 486 B
import type { Definition } from './scope.ts'; export interface RecorderOptions { dont_print?: boolean; output_objects?: boolean; enable_reqheaders_recording?: boolean; logging?: (content: string) => void; use_separator?: boolean; } declare function record(recOptions?: boolean | RecorderOptions): void; declare function restore(): void; declare function clear(): void; declare function outputs(): string[] | Definition[]; export { record, outputs, restore, clear };