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

firestore plugin: better type for Fetching and FetchAll #55

Open
coffee-cup opened this issue Sep 12, 2019 · 0 comments
Open

firestore plugin: better type for Fetching and FetchAll #55

coffee-cup opened this issue Sep 12, 2019 · 0 comments
Assignees
Labels
enhancement ✨ New feature or request

Comments

@coffee-cup
Copy link
Collaborator

coffee-cup commented Sep 12, 2019

The type of FetchData is currently

export type FetchData<T> =
  | { _fetching: true; _notFound?: never; data?: T }
  | { _notFound: true; _fetching?: never; data?: T }
  | { _fetching?: false; _notFound?: false; data: T };

It should be changed so that data is not a field on the result.

@coffee-cup coffee-cup self-assigned this Sep 12, 2019
@coffee-cup coffee-cup added the enhancement ✨ New feature or request label Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant