You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
484 B

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;
}
}