Commit 8db0195 1 parent da10a4c commit 8db0195 Copy full SHA for 8db0195
File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ export interface H3Event {
12
12
13
13
export type CompatibilityEvent = H3Event | IncomingMessage
14
14
15
- interface JSONObject { [ x : string ] : JSONValue }
16
- interface JSONArray extends Array < JSONValue > { }
17
- export type JSONValue = undefined | null | string | number | boolean | JSONObject | JSONArray
18
- export type NonNullable < T > = T extends null | undefined ? never : T
19
-
20
- type _H3Response = void | NonNullable < JSONValue > | Buffer
21
- export type H3Response = _H3Response | Promise < _H3Response >
15
+ // interface JSONObject { [x: string]: JSONValue }
16
+ // interface JSONArray extends Array<JSONValue> { }
17
+ // type JSONValue = undefined | null | string | number | boolean | JSONObject | JSONArray
18
+ // type NonNullable<T> = T extends null | undefined ? never : T
19
+ // TODO: Find a more reliable way to typecheck Response with complex intefaces
20
+ // https://github.com/unjs/h3/issues/112
21
+ export type H3Response = any
22
22
23
23
export interface EventHandler < T extends H3Response = H3Response > {
24
24
'__is_handler__' ?: true
You can’t perform that action at this time.
0 commit comments