Update dependencies

We had to change the eventDispatcher for events that shouldn't have a
second parameter to `null` instead of `never`.

See: https://github.com/sveltejs/svelte/pull/8872

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-07-09 14:02:58 +02:00
committed by Rūdolfs Ošiņš
parent 999a3a4c30
commit bde2d97c9b
9 changed files with 375 additions and 390 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
export let small = false;
export let tooltip: string | undefined = undefined;
const dispatch = createEventDispatcher<{ copied: never }>();
const dispatch = createEventDispatcher<{ copied: null }>();
let icon: "clipboard-small" | "checkmark-small" | "clipboard" | "checkmark" =
small ? "clipboard-small" : "clipboard";
+1 -1
View File
@@ -19,7 +19,7 @@
export let caption = "commented";
export let rawPath: string;
const dispatch = createEventDispatcher<{ toggleReply: never }>();
const dispatch = createEventDispatcher<{ toggleReply: null }>();
</script>
<style>
+1 -1
View File
@@ -8,7 +8,7 @@
export let title: string | undefined = undefined;
const dispatch = createEventDispatcher<{
afterNavigate: never;
afterNavigate: null;
}>();
function navigateToRoute(event: MouseEvent): void {
+1 -1
View File
@@ -13,7 +13,7 @@
>;
export let title: string | undefined = undefined;
const dispatch = createEventDispatcher<{ click: never }>();
const dispatch = createEventDispatcher<{ click: null }>();
function navigateToRoute(event: MouseEvent): void {
if (useDefaultNavigation(event)) {
+1 -1
View File
@@ -22,7 +22,7 @@
const dispatch = createEventDispatcher<{
blur: FocusEvent;
focus: FocusEvent;
submit: never;
submit: null;
}>();
let rightContainerWidth: number;
+1 -1
View File
@@ -28,7 +28,7 @@
}
const dispatch = createEventDispatcher<{
submit: never;
submit: null;
}>();
function handleKeydown(event: KeyboardEvent) {