pushWindow.d.ts 609 B

123456789101112131415161718192021222324
  1. export interface IPushWindowParams {
  2. url: string;
  3. param: {
  4. defaultTitle?: string;
  5. showLoading?: boolean;
  6. readTitle?: boolean;
  7. pullRefresh?: boolean;
  8. allowsBounceVertical?: boolean;
  9. closeCurrentWindow?: boolean;
  10. closeAllWindow?: boolean;
  11. animationType?: "none" | "push";
  12. };
  13. passData?: {
  14. [key: string]: string;
  15. };
  16. }
  17. declare function pushWindow(params: IPushWindowParams): Promise<void>;
  18. declare namespace pushWindow {
  19. var version: {
  20. android: string;
  21. ios: string;
  22. };
  23. }
  24. export default pushWindow;