Files
discord-clone/node_modules/nitropack/dist/runtime/utils.d.ts
2023-01-03 09:29:04 -06:00

15 lines
575 B
TypeScript

import type { H3Event } from 'h3';
export declare function requestHasBody(request: globalThis.Request): boolean;
export declare function useRequestBody(request: globalThis.Request): Promise<any>;
export declare function hasReqHeader(event: H3Event, name: string, includes: string): boolean | "" | undefined;
export declare function isJsonRequest(event: H3Event): boolean | undefined;
export declare function normalizeError(error: any): {
stack: {
text: string;
internal: boolean;
}[];
statusCode: any;
statusMessage: any;
message: any;
};