Skip to content

Commit 46eb14c

Browse files
feat: export plugin with necessary types
1 parent 4987b23 commit 46eb14c

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

packages/errorHandler/src/index.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
import type { ApiConfig } from "./types";
1+
import type { HttpErrors } from "@fastify/sensible";
22

33
declare module "fastify" {
44
interface FastifyInstance {
5-
config: ApiConfig;
6-
hostname: string;
7-
}
8-
9-
interface FastifyRequest {
10-
config: ApiConfig;
5+
httpErrors: HttpErrors;
116
}
127
}
138

149
export { default } from "./plugin";
1510

16-
export { default as parse } from "./parse";
17-
18-
export type { ApiConfig, AppConfig } from "./types";
11+
export type { ErrorResponse } from "./types";

0 commit comments

Comments
 (0)