File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 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
-
20
1
export type DowloadProgressCallback = ( progress : DownloadProgress ) => void ;
21
2
export type SyncStatusChangedCallback = ( status : CodePush . SyncStatus ) => void ;
22
3
export type HandleBinaryVersionMismatchCallback = ( update : RemotePackage ) => void ;
You can’t perform that action at this time.
0 commit comments