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

fix(typescript): timeDifference is not a valid parameter #200

Merged

Conversation

copperwall
Copy link
Member

This moves the timeDifference key from StrategyOptions to State.
This is because timeDifference is only used internally in the state
object and not passed in by the user in the options parameter to
auth-app.

The types were not failing previously because the State type extends
the StrategyOptions type. However, State is the correct place for
this key to live.

Closes #199

This moves the `timeDifference` key from `StrategyOptions` to `State`.
This is because `timeDifference` is only used internally in the state
object and not passed in by the user in the options parameter to
auth-app.

The types were not failing previously because the `State` type extends
the `StrategyOptions` type. However, `State` is the correct place for
this key to live.
@gr2m gr2m changed the title refactor: move timeDifference key to State type fix(typescript): timeDifference is not a valid parameter Oct 22, 2020
Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

Thanks!

@gr2m gr2m added Type: Bug Something isn't working as documented, or is being fixed typescript Relevant to TypeScript users only labels Oct 22, 2020
@gr2m gr2m merged commit b62e763 into octokit:master Oct 22, 2020
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented, or is being fixed typescript Relevant to TypeScript users only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document timeDifference startegyOption
2 participants