Skip to content

Commit

Permalink
fix: use types from statblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Apr 22, 2023
1 parent a57cfdb commit db46505
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 32 deletions.
17 changes: 1 addition & 16 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "obsidian";
import type { Creature } from "./src/utils/creature";
import type { Spell, Trait, ability } from "obsidian-overload";

// CUSTOM EVENTS
// ------------------------
Expand Down Expand Up @@ -184,22 +185,6 @@ export interface HomebrewCreature {
"statblock-link"?: string;
}

export type ability =
| "strength"
| "dexterity"
| "constitution"
| "intelligence"
| "wisdom"
| "charisma";

export type Spell = string | { [key: string]: string };

export interface Trait {
name: string;
desc: string;
[key: string]: any;
}

export interface UpdateLogMessage {
name: string;
hp: number | null;
Expand Down
44 changes: 29 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"esbuild-svelte": "^0.6.0",
"jest": "^29.5.0",
"obsidian": "^0.16.3",
"obsidian-overload": "^1.11.0",
"obsidian-overload": "^1.14.0",
"standard-version": "^9.3.2",
"svelte": "^3.49.0",
"svelte-dnd-action": "^0.9.13",
Expand Down

0 comments on commit db46505

Please sign in to comment.