-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The built-in externs for IndexedDB in Closure Compiler are missing some type info. This overrides them to add what's missing. This also tweaks type information in a few places in lib/offline/ to match. This was caught by a compiler upgrade. Issue #2528 Change-Id: I97096656f53b426067219e2d4e3aa16f32b87188
- Loading branch information
1 parent
f15f371
commit 3ac75b0
Showing
4 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** @license | ||
* Copyright 2016 Google LLC | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/** | ||
* @fileoverview Externs for IndexedDB to override the ones provided by the | ||
* Closure Compiler. | ||
* | ||
* TODO: contribute fixes to the Closure Compiler externs | ||
* | ||
* @externs | ||
*/ | ||
|
||
/** | ||
* @constructor | ||
* @extends {IDBRequest} | ||
* @suppress {duplicate} | ||
* The upstream extern doesn't have the correct type for Result. | ||
*/ | ||
var IDBOpenDBRequest = function() {}; | ||
|
||
/** @type {!IDBDatabase} */ | ||
IDBOpenDBRequest.prototype.result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters