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

chore: extract and refactor document type #11486

Merged

Conversation

Uzlopak
Copy link
Collaborator

@Uzlopak Uzlopak commented Mar 6, 2022

No description provided.

type pathsToSkip = string[] | string;

class Document<T = any, TQueryHelpers = any, DocType = any> {
constructor(doc?: any);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can this be

Suggested change
constructor(doc?: any);
constructor(doc?: Partial<T>);

?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Unfortunately not. Probably more correct to be doc ?: AnyObject

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 👍

@vkarpov15 vkarpov15 added this to the 6.2.6 milestone Mar 11, 2022
@vkarpov15 vkarpov15 merged commit 0a5c522 into Automattic:master Mar 11, 2022
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.

None yet

2 participants