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

fix: api: change return type of getAll() #55

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

Conversation

alexpotterob
Copy link

Adjusts the return type of EntityApiClient.getAll() to be more representative of what it actually returns

Description

EntityApiClient.getAll() previously returned Promise<PagedList<T>>, where T is defined as the type of the entity's ID.
It actually returns, at runtime and after the promise is fulfilled etc, a PagedList of entities.

Related Issue

#54

Motivation and Context

To fix a TypeScript type check error encountered if you create a typed ref and then try to assign its value to the awaited value of entityApiClient.getAll()

This is a pretty low priority bug to be honest as at runtime we don't get any issues, but it's just something I noticed

@alexpotterob alexpotterob added the bug Something isn't working label Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant