prompt.d.ts 394 B

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