Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 7d10eee

Browse files
squirlyNickToropov
authored andcommitted
[ts] remove invalid Promise declaration (#1416)
Promise will already be ambiently declared in the library user's configuration, because by using this library they must also have Promises configured.
1 parent ae4c326 commit 7d10eee

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

typings/react-native-code-push.d.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
// Define an interal interface for Promise, so that
2-
// we don't need to reference an additional d.ts file.
3-
interface Promise<T> {
4-
/**
5-
* Append a rejection handler callback to the promise.
6-
*
7-
* @param onRejected Callback to be triggered when the promise is rejected.
8-
*/
9-
catch(onRejected?: (reason: any) => Promise<T>): Promise<T>;
10-
11-
/**
12-
* Append a fulfillment and/or rejection handler to the promise.
13-
*
14-
* @param onFulfilled Callback to be triggered when the promise is fulfilled.
15-
* @param onRejected Callback to be triggered when the promise is rejected.
16-
*/
17-
then(onFulfilled?: (value: T) => void, onRejected?: (reason: any) => Promise<T>): Promise<T>;
18-
}
19-
201
export type DowloadProgressCallback = (progress: DownloadProgress) => void;
212
export type SyncStatusChangedCallback = (status: CodePush.SyncStatus) => void;
223
export type HandleBinaryVersionMismatchCallback = (update: RemotePackage) => void;

0 commit comments

Comments
 (0)