-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Description
Vue version
3.5.0-alpha.1
Link to minimal reproduction
Steps to reproduce
defineOptions
no longer compiles properly in TS when using v3.5.0-alpha.1
defineOptions({ name: 'Hello' })
What is expected?
Compilation should be OK
What is actually happening?
error TS2345: Argument of type '{ name: string; }' is not assignable to parameter of type 'ComponentOptionsBase<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions> & { ...; }'.
Property 'props' is missing in type '{ name: string; }' but required in type '{ props: never; emits?: undefined; expose?: undefined; slots?: undefined; }'.
3 defineOptions({ name: 'Hello' });
System Info
System:
OS: macOS 14.4.1
CPU: (10) arm64 Apple M1 Max
Memory: 1.04 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.1 - ~/.volta/tools/image/node/18.20.1/bin/node
Yarn: 1.22.17 - ~/.volta/tools/image/yarn/1.22.17/bin/yarn
npm: 9.7.1 - ~/.volta/tools/image/npm/9.7.1/bin/npm
pnpm: 9.0.6 - ~/.volta/bin/pnpm
Browsers:
Chrome: 124.0.6367.91
Safari: 17.4.1
npmPackages:
vue: 3.5.0-alpha.1 => 3.5.0-alpha.1
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels