Skip to content

Commit

Permalink
chore: fix the last TypeScript issues (yippie!)
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Dec 15, 2023
1 parent 67a3eb3 commit bcbdf38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/modals/popup/AbsolutePopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
let popups: PopupEntry[] = []
function openAbsolutePopup(
component: typeof SvelteComponent,
component: typeof SvelteComponent<Record<string, unknown>>,
props: Record<string, unknown>,
options: AbsolutePopupOptions
): number {
debug('open...', props, options)
const popup = {
const popup: PopupEntry = {
id: uniqueId(),
component: component,
props: props || {},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/logic/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ interface OnPasteAction {
parser: JSONParser
onPatch: OnPatch
onChangeText: OnChangeText
openRepairModal: (clipboardText: string, callback: RepairModalCallback) => void
openRepairModal: RepairModalCallback
}

// TODO: write unit tests
Expand Down
2 changes: 1 addition & 1 deletion src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export type InsertType = 'value' | 'object' | 'array' | 'structure'

export interface PopupEntry {
id: number
component: typeof SvelteComponent
component: typeof SvelteComponent<Record<string, unknown>>
props: Record<string, unknown>
options: AbsolutePopupOptions
}
Expand Down

0 comments on commit bcbdf38

Please sign in to comment.