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

Rename type MaybePromise to PromiseOrValue as in graphql-js #752

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

Conversation

kyarik
Copy link
Contributor

@kyarik kyarik commented Apr 10, 2021

MaybePromise<T> can be misinterpreted as Maybe<Promise<T>>. Naming this type as PromiseOrValue<T> makes it clear what this type represents and prevents the aforementioned possible misinterpretation. PromiseOrValue<T> is also defined in graphql-js (graphql-js/PromiseOrValue.d.ts), so it makes sense to keep the type name consistent.

@kyarik kyarik force-pushed the rename-maybepromise-to-promiseorvalue branch 2 times, most recently from c0abe98 to 09050f6 Compare April 10, 2021 20:21
@kyarik kyarik force-pushed the rename-maybepromise-to-promiseorvalue branch 2 times, most recently from 01fb10d to 6ac8c09 Compare June 1, 2021 22:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant