confirm.d.ts 383 B

1234567891011121314151617
  1. export interface ConfirmParams {
  2. message: string;
  3. title: string;
  4. buttonLabels: string[];
  5. }
  6. export interface ConfirmResult {
  7. buttonIndex?: number;
  8. }
  9. declare function confirm(params: ConfirmParams): Promise<ConfirmResult>;
  10. declare namespace confirm {
  11. var version: {
  12. android: string;
  13. ios: string;
  14. pc: string;
  15. };
  16. }
  17. export default confirm;