We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently the type for expression for VNodeDirective is optional any.
expression
VNodeDirective
export interface VNodeDirective { name: string; value?: any; oldValue?: any; expression?: any; arg?: string; oldArg?: string; modifiers?: { [key: string]: boolean }; }
But if I am understanding expression usage correctly, this is the string representation of what is passed into the
<div v-my-directive="moose"></div>
So even though moose may be data or computer or something that returns 'not-moose' value, the expression itself is 'moose'.
'not-moose'
'moose'
So should this not be an optional string?
export interface VNodeDirective { name: string; value?: any; oldValue?: any; expression?: string; arg?: string; oldArg?: string; modifiers?: { [key: string]: boolean }; }
The text was updated successfully, but these errors were encountered:
Hey, I'd like to work on this!
Sorry, something went wrong.
types(v-node-directive): changed expression type of VNodeDerective to…
0c49831
… optional string fix vuejs#10871
5e28a8c
730f0d1
fix(types): changed expression type to optional string (#11189)
7c75462
fix #10871
Successfully merging a pull request may close this issue.
What problem does this feature solve?
Currently the type for
expression
forVNodeDirective
is optional any.But if I am understanding expression usage correctly, this is the string representation of what is passed into the
So even though moose may be data or computer or something that returns
'not-moose'
value, the expression itself is'moose'
.So should this not be an optional string?
The text was updated successfully, but these errors were encountered: