Skip to content

Commit 99ec3a2

Browse files
types: mark all createError overloads as @deprecated (#1343)
Co-authored-by: Nick Spaargaren <[email protected]>
1 parent 8a4ac16 commit 99ec3a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/_deprecated.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export const H3Error: typeof HTTPError = HTTPError;
2525

2626
/** @deprecated Use new HTTPError() */
2727
export function createError(message: number, details?: ErrorDetails): HTTPError;
28+
/** @deprecated Use new HTTPError() */
2829
export function createError(details: ErrorDetails): HTTPError;
30+
/** @deprecated Use new HTTPError() */
2931
export function createError(arg1: any, arg2?: any): HTTPError {
3032
return new HTTPError(arg1, arg2);
3133
}

0 commit comments

Comments
 (0)