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

Update to match node version for better type-safety #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Macil
Copy link

@Macil Macil commented May 26, 2022

This PR updates the implementation to match the current implementation of the Node version of the project, which has better handling of types: the wrapped function's argument types are now preserved. This PR copies over the files exactly from the Node version besides the import line and a dropped eslint comment from the top.

This does change the main functions in mod.ts and fp.ts to become regular named exports instead of default exports. It is a breaking change but I think the consistency is good.

This PR also copies over the redis example in the readme and ports it over for Deno.

Macil added a commit to Macil/deno-advent2021 that referenced this pull request May 29, 2022
The argument types of memoizy-wrapped functions needs to be explicitly set
until ramiel/deno-memoizy#1 goes through.
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