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
Putting a ref on a component that has an empty props object gives a pretty obscure type error, see https://github.com/henribru/volar-bug-repro for a reproduction.
Argument of type '{ ref: string; }' is not assignable to parameter of type '(Partial<{ [x: number]: string; } | {}> & Omit<(Readonly<readonly unknown[] & { [x: number]: string; } & { [iterator]?: IterableIterator<string> | undefined; length?: number | undefined; ... 21 more ...; flat?: unknown[] | undefined; }> | Readonly<...>) & (VNodeProps & ... 2 more ... & Readonly<...>), never>) & Omit...'.\n Type '{ ref: string; }' is not assignable to type 'Partial<{}> & Omit<(Readonly<readonly unknown[] & { [x: number]: string; } & { [iterator]?: IterableIterator<string> | undefined; length?: number | undefined; toString?: string | undefined; ... 20 more ...; flat?: unknown[] | undefined; }> | Readonly<...>) & (VNodeProps & ... 2 more ... & Readonly<...>), never> & Om...'.
The text was updated successfully, but these errors were encountered:
3868287
@pikax when props option is empty object, $props type seem became array type, is it expected?
$props
Sorry, something went wrong.
@johnsoncodehk I noticed that when I was trying to fix vuejs/core#4051
No branches or pull requests
Putting a ref on a component that has an empty props object gives a pretty obscure type error, see https://github.com/henribru/volar-bug-repro for a reproduction.
The text was updated successfully, but these errors were encountered: