Skip to content

Conversation

nicholaschiang
Copy link

When using this library with algoliasearch (whose return types are always Readonly<Promise<T>>), I've had to use a wrapper function so that I can update those types.

This allows for more flexibility (i.e. by reducing the required properties on the Promise object) and for use with more restrictive libraries like algoliasearch.

When using this library with `algoliasearch` (whose return types are
always `Readonly<Promise<T>>`), I've had to use a wrapper function so
that I can update those types.

This allows for more flexibility (i.e. by reducing the required
properties on the `Promise` object) and for use with more restrictive
libraries like `algoliasearch`.
@nicholaschiang
Copy link
Author

nicholaschiang commented Mar 1, 2021

@scopsy I'd love to get this merged and released as soon as you've got time! Awesome work on this library by the way. I never knew that such a small piece of code could be so useful.

nicholaschiang added a commit to tutorbookapp/tutorbook that referenced this pull request Mar 1, 2021
nicholaschiang added a commit to tutorbookapp/tutorbook that referenced this pull request Mar 1, 2021
nicholaschiang added a commit to tutorbookapp/tutorbook that referenced this pull request Mar 7, 2021
nicholaschiang added a commit to tutorbookapp/tutorbook that referenced this pull request Mar 20, 2021
Adds the changes in scopsy/await-to-js#46 to our local type definitions
(which exist because I'm waiting on scopsy/await-to-js#47).
nicholaschiang added a commit to tutorbookapp/tutorbook that referenced this pull request Mar 20, 2021
Adds the changes in scopsy/await-to-js#46 to our local type definitions
(which exist because I'm waiting on scopsy/await-to-js#47).
nicholaschiang added a commit to tutorbookapp/tutorbook that referenced this pull request Mar 27, 2021
Adds the changes in scopsy/await-to-js#46 to our local type definitions
(which exist because I'm waiting on scopsy/await-to-js#47).
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