pi-test-data
Version:
Manage test data for automation
23 lines (19 loc) • 484 B
TypeScript
export = createError
declare function createError (
code: string,
message: string,
statusCode?: number,
Base?: Error
): createError.FastifyErrorConstructor
declare namespace createError {
interface FastifyError extends Error {
code: string;
name: string;
statusCode?: number;
}
interface FastifyErrorConstructor {
new(a?: any, b?: any, c?: any): FastifyError;
(a?: any, b?: any, c?: any): FastifyError;
readonly prototype: FastifyError;
}
}