refactor(webui): add types to some components' event dispatchers

feat/tables
Tomáš Mládek 2024-02-17 17:06:47 +01:00
parent afe0b858b6
commit 050e3f81d7
2 changed files with 7 additions and 2 deletions

View File

@ -5,7 +5,12 @@
import { i18n } from '../i18n';
import LabelBorder from './utils/LabelBorder.svelte';
import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher();
import { type Address } from '@upnd/upend/types';
const dispatch = createEventDispatcher<{
highlighted: string | undefined;
add: Address;
remove: Address;
}>();
export let entities: string[];
export let hide = false;

View File

@ -6,7 +6,7 @@
import type { Readable } from 'svelte/store';
import EntitySetEditor from './EntitySetEditor.svelte';
import { i18n } from '../i18n';
const dispatch = createEventDispatcher();
const dispatch = createEventDispatcher<{ change: void }>();
export let entity: Readable<UpObject | undefined>;