[chore] Fix TS
This commit is contained in:
22
src/app.d.ts
vendored
Normal file
22
src/app.d.ts
vendored
Normal 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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user