Skip to content

fix(scully-routes.service): fix missing return type#172

Merged
aaronfrost merged 2 commits intomasterfrom
sander/fix171
Jan 10, 2020
Merged

fix(scully-routes.service): fix missing return type#172
aaronfrost merged 2 commits intomasterfrom
sander/fix171

Conversation

@SanderElias
Copy link
Copy Markdown
Contributor

Put in the correct type for the return of the getCurrent function. In some cases TS inferrrence is
off otherwise

closes #171

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Other... Please describe:

What is the current behavior?

typing of the getCurrent method is off

Issue Number: #171

What is the new behavior?

It returns the correct type.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Put in the correct type for the return of the getCurrent function. In some cases TS inferrrence is
off otherwise

closes #171
Copy link
Copy Markdown
Contributor

@aaronfrost aaronfrost left a comment

Choose a reason for hiding this comment

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

I think you should add return types to every function and public member var of this class. This will fix countless future problems.

@aaronfrost aaronfrost merged commit 925bcb4 into master Jan 10, 2020
@aaronfrost aaronfrost deleted the sander/fix171 branch January 10, 2020 07:45
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.

Weird behavior of Observable

2 participants