mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Make all Svelte events type-safe
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<script lang="ts">
|
||||
<script lang="ts" strictEvents>
|
||||
import type { Wallet } from "@app/wallet";
|
||||
import type { User } from "@app/base/users/User";
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
import TextInput from "@app/TextInput.svelte";
|
||||
import { formatAddress, isAddressEqual } from "@app/utils";
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
const dispatch = createEventDispatcher<{ close: never }>();
|
||||
|
||||
export let entity: User;
|
||||
export let wallet: Wallet;
|
||||
|
||||
Reference in New Issue
Block a user