Skip to content

Commit

Permalink
[fix] make errors in Action less restrictive
Browse files Browse the repository at this point in the history
Part of #6015
  • Loading branch information
dummdidumm committed Aug 18, 2022
1 parent 7b305af commit 767ffc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export interface Action<
Params extends Partial<Record<string, string>> = Partial<Record<string, string>>
> {
(event: RequestEvent<Params>): MaybePromise<
| { status?: number; errors: Record<string, string>; location?: never }
| { status?: number; errors: Record<string, any>; location?: never }
| { status?: never; errors?: never; location: string }
| void
>;
Expand Down

0 comments on commit 767ffc2

Please sign in to comment.