@reinosoft-ui/core 0.1.83 → 0.1.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,26 +7,14 @@ export interface Confirm {
7
7
  confirmText: string;
8
8
  cancelText: string;
9
9
  }
10
- export declare const confirmStore: {
11
- current: {
12
- id: string;
13
- title?: string | undefined;
14
- text?: string | undefined;
15
- type: ConfirmType;
16
- confirmText: string;
17
- cancelText: string;
18
- resolve: (v: boolean) => void;
19
- } | null;
20
- queue: {
21
- id: string;
22
- title?: string | undefined;
23
- text?: string | undefined;
24
- type: ConfirmType;
25
- confirmText: string;
26
- cancelText: string;
27
- resolve: (v: boolean) => void;
28
- }[];
10
+ type QueueItem = Confirm & {
11
+ resolve: (v: boolean) => void;
29
12
  };
13
+ type Store = {
14
+ current: QueueItem | null;
15
+ queue: QueueItem[];
16
+ };
17
+ export declare const confirmStore: Store;
30
18
  export declare function confirm(text: string): Promise<boolean>;
31
19
  export declare function confirm(options: Partial<Confirm>): Promise<boolean>;
32
20
  export declare namespace confirm {
@@ -36,3 +24,4 @@ export declare namespace confirm {
36
24
  }
37
25
  export declare const confirmOk: () => void;
38
26
  export declare const confirmCancel: () => void;
27
+ export {};