From 7349508d713fd37049ec3536aecf45c29404dfaf Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 23 Sep 2019 14:12:46 -0700 Subject: [PATCH] Add ErrorWithResponse to TypeScript definitions --- index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.d.ts b/index.d.ts index 8021371..e81fc66 100644 --- a/index.d.ts +++ b/index.d.ts @@ -21,6 +21,10 @@ export type SimpleResponse = { html: DocumentFragment } +export type ErrorWithResponse = { + response: SimpleResponse +} + export type RemoteFormHandler = (form: HTMLFormElement, kicker: Kicker, req: SimpleRequest) => void | Promise; export function afterRemote(fn: (form: HTMLFormElement) => void | Promise): void; export function beforeRemote(fn: (form: HTMLFormElement) => void | Promise): void;