-
Notifications
You must be signed in to change notification settings - Fork 341
Closed
Labels
contribution welcomeThe team would welcome a contribution from the community for this issueThe team would welcome a contribution from the community for this issue
Description
- What's the problem?
According to https://vue-composition-api-rfc.netlify.app/zh/api.html#setup, the type of attrs should be
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;
}carsoli
Metadata
Metadata
Assignees
Labels
contribution welcomeThe team would welcome a contribution from the community for this issueThe team would welcome a contribution from the community for this issue