[chore] Fix TS

This commit is contained in:
2022-05-30 20:50:23 +02:00
parent c406278baf
commit c2dc2bf2fb
4 changed files with 25 additions and 12 deletions

22
src/app.d.ts vendored Normal file
View File

@@ -0,0 +1,22 @@
/// <reference types="@sveltejs/kit" />
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare namespace App {
// interface Locals {}
// interface Platform {}
// interface Session {}
// interface Stuff {}
}
/**
* Custom Events
*/
// Swipe
declare namespace svelte.JSX {
interface HTMLAttributes<T> {
onswipe?: (event: CustomEvent<string> & { target: EventTarget & T }) => any,
ontap?: (event: CustomEvent<boolean> & { target: EventTarget & T }) => any,
}
}