store.ts 291 B

1234567891011121314151617
  1. import { createStore } from "../core/store";
  2. export type ConfirmItem = {
  3. id: string;
  4. title: string;
  5. content?: string;
  6. noOk?: boolean;
  7. noCancel?: boolean;
  8. resolve: (v: boolean) => void;
  9. };
  10. export const confirmStore = createStore<{ queue: ConfirmItem[]; }>({
  11. queue: [],
  12. });