From 336c4b6747efb343e3f9a4f294b83e40f21764ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Thu, 23 Apr 2020 16:59:54 +0100 Subject: [PATCH] remove typescript decleration file --- index.d.ts | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index e81fc66..0000000 --- a/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -type Kicker = { - text: () => Promise, - json: () => Promise, - html: () => Promise -} - -type SimpleRequest = { - method: string, - url: string, - body: FormData | null, - headers: Headers -} - -export type SimpleResponse = { - url: string, - status: number, - statusText: string, - headers: Headers, - text: string, - json: {[key: string]: any}, - 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; -export function remoteForm(selector: string, fn: RemoteFormHandler): void; -export function remoteUninstall(selector: string, fn: RemoteFormHandler): void;