clickoutside

Add to your app.d.ts file:

app.d.ts
ts
declare namespace svelteHTML {
interface HTMLAttributes<T> {
'on:clickoutside'?: (event: CustomEvent<any> & { target: EventTarget & T }) => any
}
}
Edit page in GitHub