Commit 182b224 authored Apr 29, 2022 Verified
1 parent 46fa4d5 commit 182b224 Copy full SHA for 182b224
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ export type CompatibilityEvent = H3Event | IncomingMessage
14
14
15
15
interface JSONObject { [ x : string ] : JSONValue }
16
16
interface JSONArray extends Array < JSONValue > { }
17
- export type JSONValue = string | number | boolean | JSONObject | JSONArray
17
+ export type JSONValue = undefined | null | string | number | boolean | JSONObject | JSONArray
18
+ export type NonNullable < T > = T extends null | undefined ? never : T
18
19
19
- type _H3Response = void | JSONValue | Buffer
20
+ type _H3Response = void | NonNullable < JSONValue > | Buffer
20
21
export type H3Response = _H3Response | Promise < _H3Response >
21
22
22
23
export interface EventHandler < T extends H3Response = H3Response > {
You can’t perform that action at this time.
0 commit comments