]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
feat(types): `defineComponent()` with generics support (#7963)
authorEvan You <yyx990803@gmail.com>
Mon, 27 Mar 2023 10:28:43 +0000 (18:28 +0800)
committerGitHub <noreply@github.com>
Mon, 27 Mar 2023 10:28:43 +0000 (18:28 +0800)
commitd77557c4038f88a676903b379505b280a88cc774
tree346df3ad7f380595dd7c626d539bfdbce73d7ad1
parent9a8073d0aebccf92899553f58761a70b89c4437c
feat(types): `defineComponent()` with generics support (#7963)

BREAKING CHANGE: The type of `defineComponent()` when passing in a function has changed. This overload signature is rarely used in practice and the breakage will be minimal, so repurposing it to something more useful should be worth it.

close #3102
packages/dts-test/defineComponent.test-d.tsx
packages/dts-test/h.test-d.ts
packages/runtime-core/__tests__/apiOptions.spec.ts
packages/runtime-core/src/apiDefineComponent.ts