зеркало из https://github.com/github/remote-form.git
change callback return types to `void` from `mixed`
This commit is contained in:
Родитель
934692784c
Коммит
a28805d8d4
|
@ -24,7 +24,7 @@ export type SimpleResponse = {
|
|||
}
|
||||
export type RemoteFormHandler = (form: HTMLFormElement, kicker: Kicker, req: SimpleRequest) => void | Promise<void>;
|
||||
|
||||
declare export function afterRemote(fn: (form: HTMLFormElement) => mixed): void;
|
||||
declare export function beforeRemote(fn: (form: HTMLFormElement) => mixed): void;
|
||||
declare export function afterRemote(fn: (form: HTMLFormElement) => void): void;
|
||||
declare export function beforeRemote(fn: (form: HTMLFormElement) => void): void;
|
||||
declare export function remoteForm(selector: string, fn: RemoteFormHandler): void;
|
||||
declare export function remoteUninstall(selector: string, fn: RemoteFormHandler): void;
|
||||
|
|
Загрузка…
Ссылка в новой задаче