Skip to content

Instantly share code, notes, and snippets.

@Niedzwiedzw
Created December 6, 2021 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Niedzwiedzw/31aa0c76bb8b9d782e532d3164347a17 to your computer and use it in GitHub Desktop.
Save Niedzwiedzw/31aa0c76bb8b9d782e532d3164347a17 to your computer and use it in GitHub Desktop.
// somewhere in your project, create a svelte-jsx.d.ts file and add this:
declare namespace svelte.JSX {
interface HTMLAttributes<T> {
onchecked?: () => void;
onunchecked?: () => void;
}
}
@Niedzwiedzw
Copy link
Author

credits go to svelte-discord user @Tropical#4355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment