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

Add a generic parameter so TS users can use serialize: false #471

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pzuraq
Copy link

@pzuraq pzuraq commented Sep 25, 2022

Fixes #465, this has been the pattern I've generally seen for passing down generics like this. It is an unfortunate amount of boilerplate, but the type-safety you get with it is usually worth it (e.g. being able to constrain the other values of the config, in this case).

@apollo-cla
Copy link

@pzuraq: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@kdsbatra
Copy link

kdsbatra commented Dec 15, 2022

Do we think we can merge this soon?

I am in process of making another Pull Request to work with latest MMKVStorageWrappers and would like to merge this first

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.

Passing false to serialize gives typescript error
3 participants