Skip to content

Commit f650253

Browse files
committed
add fetchbundle
1 parent b13b82c commit f650253

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

types/react-native/globals.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ declare function setImmediate(handler: (...args: any[]) => void): number;
1919
declare function cancelAnimationFrame(handle: number): void;
2020
declare function requestAnimationFrame(callback: (time: number) => void): number;
2121

22+
declare function fetchBundle(bundleId: number, callback: (error?: Error | null) => void): void;
23+
2224
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;

types/react-native/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for react-native 0.50
1+
// Type definitions for react-native 0.51
22
// Project: https://github.com/facebook/react-native
33
// Definitions by: Eloy Durán <https://github.com/alloy>
44
// HuHuanming <https://github.com/huhuanming>

0 commit comments

Comments
 (0)