diff --git a/src/builder/view.ts b/src/builder/view.ts index d3bdbd30..184b95d5 100644 --- a/src/builder/view.ts +++ b/src/builder/view.ts @@ -1,5 +1,4 @@ -import type { ExperienceThreshold } from "index"; -import { ItemView, ViewStateResult, WorkspaceLeaf } from "obsidian"; +import { ItemView, type ViewStateResult, WorkspaceLeaf } from "obsidian"; import type InitiativeTracker from "src/main"; import { BUILDER_VIEW } from "../utils"; diff --git a/src/encounter/ui/Encounter.svelte b/src/encounter/ui/Encounter.svelte index 66e3aeb7..6c358f39 100644 --- a/src/encounter/ui/Encounter.svelte +++ b/src/encounter/ui/Encounter.svelte @@ -8,7 +8,7 @@ import { tracker } from "src/tracker/stores/tracker"; import type { CreatureState } from "index"; import CreatureComponent from "./Creature.svelte"; - import { setContext } from "svelte/internal"; + import { setContext } from "svelte"; export let plugin: InitiativeTracker; diff --git a/src/global.d.ts b/src/global.d.ts index 964c6caa..73214d63 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -3,12 +3,12 @@ declare interface GenericDndEvent> { items: T; info: DndEventInfo; } -declare namespace svelte.JSX { +declare namespace svelteHTML { interface HTMLAttributes { - onconsider?: ( + "on:consider"?: ( event: CustomEvent & { target: EventTarget & T } ) => void; - onfinalize?: ( + "on:finalize"?: ( event: CustomEvent & { target: EventTarget & T } ) => void; }