File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ export default class WindowController extends ControllerInterface {
247
247
const serviceWorker = registration . installing || registration . waiting ||
248
248
registration . active ;
249
249
250
- return new Promise ( ( resolve , reject ) => {
250
+ return new Promise < ServiceWorkerRegistration > ( ( resolve , reject ) => {
251
251
if ( ! serviceWorker ) {
252
252
// This is a rare scenario but has occured in firefox
253
253
reject ( this . errorFactory_ . create ( Errors . codes . NO_SW_IN_REG ) ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default class DBInterface {
25
25
private dbVersion_ : number ;
26
26
private openDbPromise_ : Promise < IDBDatabase > ;
27
27
protected errorFactory_ : ErrorFactory < string > ;
28
- protected TRANSACTION_READ_WRITE : string ;
28
+ protected TRANSACTION_READ_WRITE : IDBTransactionMode ;
29
29
30
30
/**
31
31
* @param {string } dbName
Original file line number Diff line number Diff line change @@ -493,13 +493,13 @@ export class UploadTask {
493
493
/**
494
494
* This object behaves like a Promise, and resolves with its snapshot data
495
495
* when the upload completes.
496
- * The fulfillment callback. Promise chaining works as normal.
496
+ * @param onFulfilled The fulfillment callback. Promise chaining works as normal.
497
497
* @param onRejected The rejection callback.
498
498
*/
499
499
then < U > ( onFulfilled ?: ( ( value : UploadTaskSnapshot ) => U | PromiseLike < U > ) | null , onRejected ?: ( ( error : any ) => U | PromiseLike < U > ) | null ) : Promise < U > {
500
500
return this . promise_ . then < U > (
501
501
( onFulfilled as ( value : UploadTaskSnapshot ) => U | PromiseLike < U > ) ,
502
- ( onRejected as ( ( error : any ) => PromiseLike < U > ) | null ) ) ;
502
+ ( onRejected as ( ( error : any ) => PromiseLike < never > ) | null ) ) ;
503
503
}
504
504
505
505
/**
You can’t perform that action at this time.
0 commit comments