import type { RequestHandler } from 'express' type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE' type API = string export type MockConfig = Record< `${Method} ${API}`, string | number | null | undefined | boolean | Record | RequestHandler > export function defineMock(config: MockConfig) { return config }