We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
createError
1 parent 8a4ac16 commit 99ec3a2Copy full SHA for 99ec3a2
src/_deprecated.ts
@@ -25,7 +25,9 @@ export const H3Error: typeof HTTPError = HTTPError;
25
26
/** @deprecated Use new HTTPError() */
27
export function createError(message: number, details?: ErrorDetails): HTTPError;
28
+/** @deprecated Use new HTTPError() */
29
export function createError(details: ErrorDetails): HTTPError;
30
31
export function createError(arg1: any, arg2?: any): HTTPError {
32
return new HTTPError(arg1, arg2);
33
}
0 commit comments