mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
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:
@@ -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";
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
export let caption = "commented";
|
||||
export let rawPath: string;
|
||||
|
||||
const dispatch = createEventDispatcher<{ toggleReply: never }>();
|
||||
const dispatch = createEventDispatcher<{ toggleReply: null }>();
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
export let title: string | undefined = undefined;
|
||||
|
||||
const dispatch = createEventDispatcher<{
|
||||
afterNavigate: never;
|
||||
afterNavigate: null;
|
||||
}>();
|
||||
|
||||
function navigateToRoute(event: MouseEvent): void {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
const dispatch = createEventDispatcher<{
|
||||
blur: FocusEvent;
|
||||
focus: FocusEvent;
|
||||
submit: never;
|
||||
submit: null;
|
||||
}>();
|
||||
|
||||
let rightContainerWidth: number;
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
}
|
||||
|
||||
const dispatch = createEventDispatcher<{
|
||||
submit: never;
|
||||
submit: null;
|
||||
}>();
|
||||
|
||||
function handleKeydown(event: KeyboardEvent) {
|
||||
|
||||
Reference in New Issue
Block a user