mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
refactor(client/ts): use discriminated unions for triggering commands
This commit is contained in:
@@ -41,7 +41,7 @@ export interface ConfirmWithMessageOptions {
|
||||
callback: ConfirmDialogCallback;
|
||||
}
|
||||
|
||||
interface ConfirmWithTitleOptions {
|
||||
export interface ConfirmWithTitleOptions {
|
||||
title: string;
|
||||
callback: ConfirmDialogCallback;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ export interface PromptDialogOptions {
|
||||
message?: string;
|
||||
defaultValue?: string;
|
||||
shown: PromptShownDialogCallback;
|
||||
callback: () => void;
|
||||
callback: (value: unknown) => void;
|
||||
}
|
||||
|
||||
export type PromptShownDialogCallback = ((callback: ShownCallbackData) => void) | null;
|
||||
|
||||
Reference in New Issue
Block a user