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
interface Data { [key: string]: unknown } interface SetupContext { attrs: Data slots: Slots emit: (event: string, ...args: unknown[]) => void }
However, the type of attrs is Record<string, string>
interface SetupContext { readonly attrs: Record<string, string>; readonly slots: { [key: string]: (...args: any[]) => VNode[]; }; readonly parent: ComponentInstance | null; readonly root: ComponentInstance; readonly listeners: { [key: string]: Function; }; emit(event: string, ...args: any[]): void; }
The text was updated successfully, but these errors were encountered:
Mind create a PR?
Sorry, something went wrong.
Yes, I can create a PR in this week
popolan1986
Successfully merging a pull request may close this issue.
According to https://vue-composition-api-rfc.netlify.app/zh/api.html#setup, the type of attrs should be
However, the type of attrs is Record<string, string>
The text was updated successfully, but these errors were encountered: