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(TypeScript): Query.cast() #10388

Merged
merged 1 commit into from
Jun 25, 2021
Merged

Conversation

lkho
Copy link
Contributor

@lkho lkho commented Jun 24, 2021

Summary
Query.cast() args should be optional

reference source:

Query.prototype.cast = function(model, obj) {

Query.cast() args should be optional
* @param {Object} [obj] If not set, defaults to this query's conditions
* @return {Object} the casted `obj`
*/
cast(model?: Model<any, THelpers> | null, obj?: any): any;
Copy link
Collaborator

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 5.12.15 milestone Jun 25, 2021
@vkarpov15 vkarpov15 merged commit 03aa1d0 into Automattic:master Jun 25, 2021
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