Skip to content

Commit 96a8726

Browse files
authored
fix: types for custom server hook (#6823)
1 parent b2daab0 commit 96a8726

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/silver-schools-whisper.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@modern-js/types': patch
3+
---
4+
5+
fix: types for custom server hook
6+
fix: 自定义 server 的 hook 类型

packages/toolkit/types/server/hook.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
ServerResponse,
55
} from 'http';
66
import type { ServerRoute } from './route';
7-
import type { Reporter } from './utils';
7+
import type { Logger, Metrics, Reporter } from './utils';
88

99
export type CookieAPI = {
1010
/**

0 commit comments

Comments
 (0)