@n1k1t/mock-server
Version:
Powerful util to setup mocks over HTTP APIs
10 lines • 501 B
TypeScript
import { IRequestContextIncoming } from '../../context';
export declare class ExecutorManualError extends Error {
code: Extract<IRequestContextIncoming['error'], string>;
constructor(code: Extract<IRequestContextIncoming['error'], string>);
is<K extends Extract<IRequestContextIncoming['error'], string>>(code: K): this is this & {
code: K;
};
static build(code: Extract<IRequestContextIncoming['error'], string>): ExecutorManualError;
}
//# sourceMappingURL=index.d.ts.map