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(index.d.ts): reorder create typings to allow array desctructuring #9890

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

Ugzuzg
Copy link
Contributor

@Ugzuzg Ugzuzg commented Feb 2, 2021

Summary

Current typings do not allow array destructuring, as TypeScript chooses create<DocContents = T | DocumentDefinition<T>>(doc: DocContents): Promise<T>; definition even while using create with arrays.

@Ugzuzg Ugzuzg force-pushed the fix/create-typings branch from ccc0937 to a5fb467 Compare February 3, 2021 11:21
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants