Skip to content

Commit

Permalink
chore: update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Sep 29, 2023
1 parent 97cd5e7 commit a46c9cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/builder/view.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/encounter/ui/Encounter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ declare interface GenericDndEvent<T extends Record<string, any>> {
items: T;
info: DndEventInfo;
}
declare namespace svelte.JSX {
declare namespace svelteHTML {
interface HTMLAttributes<T> {
onconsider?: (
"on:consider"?: (
event: CustomEvent<GenericDndEvent> & { target: EventTarget & T }
) => void;
onfinalize?: (
"on:finalize"?: (
event: CustomEvent<GenericDndEvent> & { target: EventTarget & T }
) => void;
}
Expand Down

0 comments on commit a46c9cc

Please sign in to comment.