Skip to content

fix(language-core): avoid generic type loss due to destructured props #6889

fix(language-core): avoid generic type loss due to destructured props

fix(language-core): avoid generic type loss due to destructured props #6889

Triggered via pull request September 6, 2024 18:37
Status Failure
Total duration 1m 19s
Artifacts

test.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

17 errors
build (18, ubuntu-latest)
Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.",
build (18, ubuntu-latest)
Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.",
build (18, ubuntu-latest)
Unused '@ts-expect-error' directive.",
build (18, ubuntu-latest)
Property 'bar' does not exist on type 'DistributeRef<Omit<DefineProps<LooseRequired<{ foo: TFoo; fooKey: TFooKey; bar: TFoo; barKey: TFooKey; }>, ([TFoo] extends [boolean | undefined] ? "foo" : never) | ([...] extends [...] ? "bar" : never) | ([...] extends [...] ? "fooKey" : never) | ([...] extends [...] ? "barKey" : never)>, "foo" | "fooKey">>'.",
build (18, ubuntu-latest)
Property 'barKey' does not exist on type 'DistributeRef<Omit<DefineProps<LooseRequired<{ foo: TFoo; fooKey: TFooKey; bar: TFoo; barKey: TFooKey; }>, ([TFoo] extends [boolean | undefined] ? "foo" : never) | ([...] extends [...] ? "bar" : never) | ([...] extends [...] ? "fooKey" : never) | ([...] extends [...] ? "barKey" : never)>, "foo" | "fooKey">>'.",
packages/tsc/tests/typecheck.spec.ts > vue-tsc > TypeScript - Stable: packages/tsc/tests/typecheck.spec.ts#L10
Error: Snapshot `vue-tsc > TypeScript - Stable 1` mismatched - Expected + Received [ "test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.", "test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.", "test-workspace/tsc/failureFixtures/directives/main.vue(12,2): error TS2578: Unused '@ts-expect-error' directive.", + "test-workspace/tsc/passedFixtures/vue3/#4820/main.vue(21,16): error TS2339: Property 'bar' does not exist on type 'DistributeRef<Omit<DefineProps<LooseRequired<{ foo: TFoo; fooKey: TFooKey; bar: TFoo; barKey: TFooKey; }>, ([TFoo] extends [boolean | undefined] ? "foo" : never) | ([...] extends [...] ? "bar" : never) | ([...] extends [...] ? "fooKey" : never) | ([...] extends [...] ? "barKey" : never)>, "foo" | "fooKey">>'.", + "test-workspace/tsc/passedFixtures/vue3/#4820/main.vue(21,27): error TS2339: Property 'barKey' does not exist on type 'DistributeRef<Omit<DefineProps<LooseRequired<{ foo: TFoo; fooKey: TFooKey; bar: TFoo; barKey: TFooKey; }>, ([TFoo] extends [boolean | undefined] ? "foo" : never) | ([...] extends [...] ? "bar" : never) | ([...] extends [...] ? "fooKey" : never) | ([...] extends [...] ? "barKey" : never)>, "foo" | "fooKey">>'.", ] ❯ packages/tsc/tests/typecheck.spec.ts:10:5
build (18, ubuntu-latest)
Process completed with exit code 1.
build (18, windows-latest)
The job was canceled because "_18_ubuntu-latest" failed.
build (18, windows-latest)
The operation was canceled.
build (18, macos-latest)
The job was canceled because "_18_ubuntu-latest" failed.
build (18, macos-latest)
Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.",
build (18, macos-latest)
Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.",
build (18, macos-latest)
Unused '@ts-expect-error' directive.",
build (18, macos-latest)
Property 'bar' does not exist on type 'DistributeRef<Omit<DefineProps<LooseRequired<{ foo: TFoo; fooKey: TFooKey; bar: TFoo; barKey: TFooKey; }>, ([TFoo] extends [boolean | undefined] ? "foo" : never) | ([...] extends [...] ? "bar" : never) | ([...] extends [...] ? "fooKey" : never) | ([...] extends [...] ? "barKey" : never)>, "foo" | "fooKey">>'.",
build (18, macos-latest)
Property 'barKey' does not exist on type 'DistributeRef<Omit<DefineProps<LooseRequired<{ foo: TFoo; fooKey: TFooKey; bar: TFoo; barKey: TFooKey; }>, ([TFoo] extends [boolean | undefined] ? "foo" : never) | ([...] extends [...] ? "bar" : never) | ([...] extends [...] ? "fooKey" : never) | ([...] extends [...] ? "barKey" : never)>, "foo" | "fooKey">>'.",
packages/tsc/tests/typecheck.spec.ts > vue-tsc > TypeScript - Stable: packages/tsc/tests/typecheck.spec.ts#L10
Error: Snapshot `vue-tsc > TypeScript - Stable 1` mismatched - Expected + Received [ "test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.", "test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.", "test-workspace/tsc/failureFixtures/directives/main.vue(12,2): error TS2578: Unused '@ts-expect-error' directive.", + "test-workspace/tsc/passedFixtures/vue3/#4820/main.vue(21,16): error TS2339: Property 'bar' does not exist on type 'DistributeRef<Omit<DefineProps<LooseRequired<{ foo: TFoo; fooKey: TFooKey; bar: TFoo; barKey: TFooKey; }>, ([TFoo] extends [boolean | undefined] ? "foo" : never) | ([...] extends [...] ? "bar" : never) | ([...] extends [...] ? "fooKey" : never) | ([...] extends [...] ? "barKey" : never)>, "foo" | "fooKey">>'.", + "test-workspace/tsc/passedFixtures/vue3/#4820/main.vue(21,27): error TS2339: Property 'barKey' does not exist on type 'DistributeRef<Omit<DefineProps<LooseRequired<{ foo: TFoo; fooKey: TFooKey; bar: TFoo; barKey: TFooKey; }>, ([TFoo] extends [boolean | undefined] ? "foo" : never) | ([...] extends [...] ? "bar" : never) | ([...] extends [...] ? "fooKey" : never) | ([...] extends [...] ? "barKey" : never)>, "foo" | "fooKey">>'.", ] ❯ packages/tsc/tests/typecheck.spec.ts:10:5
build (18, macos-latest)
The operation was canceled.