diff --git a/src/event.ts b/src/event.ts index 9eed764e..3da1a367 100644 --- a/src/event.ts +++ b/src/event.ts @@ -12,8 +12,9 @@ export interface H3Event { export type CompatibilityEvent = H3Event | IncomingMessage -type _JSONValue = T | T[] | Record -export type JSONValue = _JSONValue<_JSONValue> +interface JSONObject { [x: string]: JSONValue } +interface JSONArray extends Array { } +export type JSONValue = string | number | boolean | JSONObject | JSONArray type _H3Response = void | JSONValue | Buffer export type H3Response = _H3Response | Promise<_H3Response>