refactor(webui): add types to some components' event dispatchers
parent
afe0b858b6
commit
050e3f81d7
|
@ -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;
|
||||
|
|
|
@ -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>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue