feat: on:enter events and library scrollIntoView

This commit is contained in:
Aleksi Lassila
2024-04-06 01:03:23 +03:00
parent b7cc93691b
commit a474172de3
12 changed files with 77 additions and 44 deletions

View File

@@ -0,0 +1,15 @@
import type { EnterEvent } from '../selectable';
declare namespace svelteHTML {
// enhance elements
interface IntrinsicElements {
Container: { 'on:enter': (e: EnterEvent) => void };
}
// // enhance attributes
// interface HTMLAttributes<T> {
// // If you want to use on:beforeinstallprompt
// 'on:beforeinstallprompt'?: (event: any) => any;
// // If you want to use myCustomAttribute={..} (note: all lowercase)
// mycustomattribute?: any; // You can replace any with something more specific if you like
// }
}