Fix various type errors with strict mode

This commit is contained in:
Ryan Gossiaux
2021-12-15 14:06:33 -08:00
parent 543c1263e3
commit 5b36ce9404
9 changed files with 96 additions and 64 deletions

View File

@@ -19,7 +19,6 @@
let descriptionContext = useDescriptionContext();
let id = `headlessui-switch-${useId()}`;
$: switchStore = $api?.switchStore;
let internalSwitchRef = null;
function toggle() {
dispatch("updateValue", !checked);
@@ -63,7 +62,6 @@
{:else}
<button
{...{ ...$$restProps, ...propsWeControl }}
bind:this={$internalSwitchRef}
on:click={handleClick}
on:keyup={handleKeyUp}
on:keypress={handleKeyPress}