We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcaf8d2 commit f820d74Copy full SHA for f820d74
src/runtime/composables/dialog.ts
@@ -6,19 +6,19 @@ export interface Dialog {
6
title: string
7
message: string
8
action: {
9
- function: () => Promise<void>
+ function: (() => Promise<void>) | null
10
buttonText: string
11
buttonColor: string
12
}
13
closeButtonText: string
14
15
16
-export const dialogInitialState = <Dialog>{
+export const dialogInitialState: Dialog = {
17
show: false,
18
title: '',
19
message: '',
20
21
- function: () => new Promise<void>(resolve => resolve()),
+ function: null,
22
buttonText: '',
23
buttonColor: '',
24
},
0 commit comments