Skip to content
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

Chore: Fix some implicitAny bugs #16594

Merged
merged 1 commit into from
Apr 15, 2019
Merged

Chore: Fix some implicitAny bugs #16594

merged 1 commit into from
Apr 15, 2019

Conversation

aocenas
Copy link
Member

@aocenas aocenas commented Apr 15, 2019

Fixing my Karma.

@@ -2,7 +2,7 @@ import { createResetHandler, PasswordFieldEnum, Ctrl } from './passwordHandlers'

describe('createResetHandler', () => {
Object.keys(PasswordFieldEnum).forEach(fieldKey => {
const field = PasswordFieldEnum[fieldKey];
const field: any = PasswordFieldEnum[fieldKey as any];
Copy link
Member Author

@aocenas aocenas Apr 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit weird this complains, seems to be a sanctioned way to loop over the enum but still could not make it work with better typing.

@torkelo torkelo merged commit 6eb8b29 into master Apr 15, 2019
@torkelo torkelo deleted the implicit-any-fixes branch April 15, 2019 11:14
ryantxu added a commit to ryantxu/grafana that referenced this pull request Apr 15, 2019
* grafana/master:
  Docs: minor docs update for old urls
  Chore: Add more explicit typing (grafana#16594)
  Chore: Lowered implicit anys limit to 5977
  Chore: Adds typings to lodash (grafana#16590)
  PanelEditor: Change Queries heading to Query (grafana#16536)
  Security: Store datasource passwords encrypted in secureJsonData (grafana#16175)
  More development dashboards (grafana#16550)
  build: upgrades to golang 1.12.4 (grafana#16545)
  Use package libfontconfig1, instead of libfontconfig (grafana#16548)
  Adjust Send on all alerts to default label (grafana#16554)
  Chore: Lower limit of implicit anys to 6676
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants