Skip to content

Commit 7349508

Browse files
committed
Add ErrorWithResponse to TypeScript definitions
1 parent d11f7a2 commit 7349508

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export type SimpleResponse = {
2121
html: DocumentFragment
2222
}
2323

24+
export type ErrorWithResponse = {
25+
response: SimpleResponse
26+
}
27+
2428
export type RemoteFormHandler = (form: HTMLFormElement, kicker: Kicker, req: SimpleRequest) => void | Promise<void>;
2529
export function afterRemote(fn: (form: HTMLFormElement) => void | Promise<void>): void;
2630
export function beforeRemote(fn: (form: HTMLFormElement) => void | Promise<void>): void;

0 commit comments

Comments
 (0)