Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Typesafety lacking in some cases; more exact types could be used #179

Open
elnygren opened this issue Feb 14, 2019 · 0 comments
Open

Typesafety lacking in some cases; more exact types could be used #179

elnygren opened this issue Feb 14, 2019 · 0 comments

Comments

@elnygren
Copy link
Contributor

elnygren commented Feb 14, 2019

An example situation is fetchPolicy which is defined as a string even though we know all the legal values: https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-config-options-fetchPolicy

Seems like we could use polymorphic variants here; `cacheFirst and so on

There's also a PR; #153 that is adding fetchPolicy as a string.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant