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

[BUG] Fix types for prime() to allow priming an Error #217

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

leebyron
Copy link
Contributor

There is existing behavior to support priming the cache with an Error at a given key, however the Flow/TS types did not allow this. This fixes this type checking bug and includes this pattern in the documentation.

@leebyron leebyron merged commit 2219c1d into master Nov 14, 2019
@leebyron leebyron deleted the prime-error-types branch November 14, 2019 18:42
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.

1 participant