-
Notifications
You must be signed in to change notification settings - Fork 928
Enable noImplicitAny Typescript compiler flag #1862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 9 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7367b5f
Start updating files
hsubox76 611674c
noImplicitAny TS fixes
hsubox76 b553168
[AUTOMATED]: Prettier Code Styling
hsubox76 7e074d6
Merge from master
hsubox76 6aa0b42
Merge conflicts
hsubox76 514e9fa
Address PR comments
hsubox76 bf77602
Make UrlParams type a little more flexible
hsubox76 012700a
Fix test files
hsubox76 8400549
[AUTOMATED]: Prettier Code Styling
hsubox76 de51d86
Change ts-ignore to eslint ignores
hsubox76 2918413
Merge master
hsubox76 4a36e0d
Addressing some PR comments
hsubox76 3e72dad
More comments
hsubox76 38a4617
[AUTOMATED]: Prettier Code Styling
hsubox76 4f28adb
Fix failing tests
hsubox76 fe87a29
[AUTOMATED]: Prettier Code Styling
hsubox76 1c28ffe
Fix packages/firestore/ usages of @ts-ignore. (#1882)
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -80,6 +80,7 @@ export function createFirebaseNamespaceCore( | |
// | ||
// import * as firebase from 'firebase'; | ||
// which becomes: var firebase = require('firebase'); | ||
// @ts-ignore | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As discussed, please cast to any and use eslint suppression instead of @ts-ignore. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
namespace['default'] = namespace; | ||
|
||
// firebase.apps is a read-only getter. | ||
|
@@ -108,6 +109,7 @@ export function createFirebaseNamespaceCore( | |
return apps[name]; | ||
} | ||
|
||
// @ts-ignore | ||
app['App'] = firebaseAppImpl; | ||
/** | ||
* Create a new App instance (name must be unique). | ||
|
@@ -196,6 +198,7 @@ export function createFirebaseNamespaceCore( | |
|
||
// The Service namespace is an accessor function ... | ||
function serviceNamespace(appArg: FirebaseApp = app()): FirebaseService { | ||
// @ts-ignore | ||
if (typeof appArg[name] !== 'function') { | ||
// Invalid argument. | ||
// This happens in the following case: firebase.storage('gs:/') | ||
|
@@ -205,6 +208,7 @@ export function createFirebaseNamespaceCore( | |
} | ||
|
||
// Forward service instance lookup to the FirebaseApp. | ||
// @ts-ignore | ||
return appArg[name](); | ||
} | ||
|
||
|
@@ -214,9 +218,11 @@ export function createFirebaseNamespaceCore( | |
} | ||
|
||
// Monkey-patch the serviceNamespace onto the firebase namespace | ||
// @ts-ignore | ||
namespace[name] = serviceNamespace; | ||
|
||
// Patch the FirebaseAppImpl prototype | ||
// @ts-ignore | ||
firebaseAppImpl.prototype[name] = function(...args) { | ||
const serviceFxn = this._getService.bind(this, name); | ||
return serviceFxn.apply(this, allowMultipleInstances ? args : []); | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the motivation behind the change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dom-storage
andxmlhttprequest
don't have types so the type ofStorage
andXMLHttpRequest
is implicitlyany
. Maybe it would be simpler to just@ts-ignore
and explain it is a node package.