Skip to content

Commit

Permalink
fix: Explicitly type cb arg
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed May 1, 2024
1 parent 5c5349f commit 8f78a14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const init_all_commands = (plugin: BreadcrumbsPlugin) => {
target: modal.contentEl,
props: {
label: `Type '${PROMPT_TARGET}' to confirm`,
disabled_cb: (value) => value !== PROMPT_TARGET,
disabled_cb: (value: string) => value !== PROMPT_TARGET,
},
}).$on("submit", async (e) => {
if (e.detail !== PROMPT_TARGET) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/input/SimpleInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { createEventDispatcher } from "svelte";
export let label = "";
export let disabled_cb: (value: string) => boolean = () => false;
export let disabled_cb: (value: string) => boolean = (_value) => false;
let value = "";
Expand Down

0 comments on commit 8f78a14

Please sign in to comment.