зеркало из https://github.com/github/remote-form.git
Merge pull request #13 from josh/ts-error
Add ErrorWithResponse to TypeScript definitions
This commit is contained in:
Коммит
08b891014e
|
@ -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<void>;
|
||||
export function afterRemote(fn: (form: HTMLFormElement) => void | Promise<void>): void;
|
||||
export function beforeRemote(fn: (form: HTMLFormElement) => void | Promise<void>): void;
|
||||
|
|
Загрузка…
Ссылка в новой задаче