Skip to content

Commit

Permalink
chore:rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Dec 15, 2024
1 parent 83d31e2 commit b61dc34
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions lib/httpError.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
export declare class HttpError<N extends number = number> extends Error {
status: N;
statusCode: N;
expose: boolean;
status: N
statusCode: N
expose: boolean
headers?: {
[key: string]: string;
};

[key: string]: any;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@fastify/pre-commit": "^2.1.0",
"@types/node": "^22.0.0",
"fastify": "^5.0.0",
"neostandard": "^0.11.9",
"neostandard": "^0.12.0",
"tap": "^18.7.1",
"tsd": "^0.31.0"
},
Expand Down
12 changes: 6 additions & 6 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FastifyPluginCallback, FastifyReply } from 'fastify'
import { HttpErrors, HttpError } from "../lib/httpError"
import { FastifyPluginCallback, FastifyReply } from 'fastify'
import { HttpErrors, HttpError } from '../lib/httpError'
import * as Errors from '../lib/httpError'

type FastifySensible = FastifyPluginCallback<fastifySensible.FastifySensibleOptions>
Expand Down Expand Up @@ -89,11 +89,11 @@ declare namespace fastifySensible {
sharedSchemaId?: string;
}

export { HttpError };
export { HttpError }

export type HttpErrors = Errors.HttpErrors;
export type HttpErrorCodes = Errors.HttpErrorCodes;
export type HttpErrorNames = Errors.HttpErrorNames;
export type HttpErrors = Errors.HttpErrors
export type HttpErrorCodes = Errors.HttpErrorCodes
export type HttpErrorNames = Errors.HttpErrorNames

export const httpErrors: typeof Errors.default

Expand Down

0 comments on commit b61dc34

Please sign in to comment.