@tarojs/runtime 4.1.7-beta.0 → 4.1.7-beta.2

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.
package/dist/bom/raf.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare let now: () => number;
2
- declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
2
+ declare const _raf: typeof requestAnimationFrame;
3
3
  declare const _caf: typeof cancelAnimationFrame;
4
4
 
5
5
  export { _caf as caf, now, _raf as raf };
@@ -6,7 +6,7 @@ import { TaroLocation } from './location.js';
6
6
 
7
7
  declare class TaroWindow extends Events {
8
8
  navigator: Navigator;
9
- requestAnimationFrame: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
9
+ requestAnimationFrame: typeof requestAnimationFrame;
10
10
  cancelAnimationFrame: typeof cancelAnimationFrame;
11
11
  getComputedStyle: TGetComputedStyle;
12
12
  Date: DateConstructor;
@@ -18,7 +18,7 @@ declare class TaroWindow extends Events {
18
18
  get document(): TaroDocument;
19
19
  addEventListener(event: string, callback: (arg: any) => void): void;
20
20
  removeEventListener(event: string, callback: (arg: any) => void): void;
21
- setTimeout(...args: Parameters<typeof setTimeout>): NodeJS.Timeout;
21
+ setTimeout(...args: Parameters<typeof setTimeout>): number;
22
22
  clearTimeout(...args: Parameters<typeof clearTimeout>): void;
23
23
  }
24
24
 
@@ -511,7 +511,7 @@ declare const History: typeof TaroHistory;
511
511
  declare const nav: typeof window.navigator;
512
512
 
513
513
  declare let now: () => number;
514
- declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
514
+ declare const _raf: typeof requestAnimationFrame;
515
515
  declare const _caf: typeof cancelAnimationFrame;
516
516
 
517
517
  declare class TaroURL {
@@ -570,7 +570,7 @@ declare const URLSearchParams$1: any;
570
570
 
571
571
  declare class TaroWindow extends Events {
572
572
  navigator: Navigator;
573
- requestAnimationFrame: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
573
+ requestAnimationFrame: typeof requestAnimationFrame;
574
574
  cancelAnimationFrame: typeof cancelAnimationFrame;
575
575
  getComputedStyle: TGetComputedStyle;
576
576
  Date: DateConstructor;
@@ -582,7 +582,7 @@ declare class TaroWindow extends Events {
582
582
  get document(): TaroDocument;
583
583
  addEventListener(event: string, callback: (arg: any) => void): void;
584
584
  removeEventListener(event: string, callback: (arg: any) => void): void;
585
- setTimeout(...args: Parameters<typeof setTimeout>): NodeJS.Timeout;
585
+ setTimeout(...args: Parameters<typeof setTimeout>): number;
586
586
  clearTimeout(...args: Parameters<typeof clearTimeout>): void;
587
587
  }
588
588
 
@@ -511,7 +511,7 @@ declare const History: typeof TaroHistory;
511
511
  declare const nav: typeof window.navigator;
512
512
 
513
513
  declare let now: () => number;
514
- declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
514
+ declare const _raf: typeof requestAnimationFrame;
515
515
  declare const _caf: typeof cancelAnimationFrame;
516
516
 
517
517
  declare class TaroURL {
@@ -570,7 +570,7 @@ declare const URLSearchParams$1: any;
570
570
 
571
571
  declare class TaroWindow extends Events {
572
572
  navigator: Navigator;
573
- requestAnimationFrame: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
573
+ requestAnimationFrame: typeof requestAnimationFrame;
574
574
  cancelAnimationFrame: typeof cancelAnimationFrame;
575
575
  getComputedStyle: TGetComputedStyle;
576
576
  Date: DateConstructor;
@@ -582,7 +582,7 @@ declare class TaroWindow extends Events {
582
582
  get document(): TaroDocument;
583
583
  addEventListener(event: string, callback: (arg: any) => void): void;
584
584
  removeEventListener(event: string, callback: (arg: any) => void): void;
585
- setTimeout(...args: Parameters<typeof setTimeout>): NodeJS.Timeout;
585
+ setTimeout(...args: Parameters<typeof setTimeout>): number;
586
586
  clearTimeout(...args: Parameters<typeof clearTimeout>): void;
587
587
  }
588
588
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/runtime",
3
- "version": "4.1.7-beta.0",
3
+ "version": "4.1.7-beta.2",
4
4
  "description": "taro runtime for mini apps.",
5
5
  "author": "O2Team",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "tslib": "^2.6.2",
27
- "@tarojs/shared": "4.1.7-beta.0"
27
+ "@tarojs/shared": "4.1.7-beta.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@rollup/plugin-typescript": "^12.1.2",