Skip to content

Vue 2 types missing type parameter constraints #12753

@sandersn

Description

@sandersn

Version

2.7.9

Reproduction link

github.com

Steps to reproduce

$ npm i
$ npm i -g typescript@rc
$ tsc

What is expected?

No compile error on Typescript 4.8

What is actually happening?

Compile error on Typescript 4.8

node_modules/vue/types/options.d.ts(109,5): error TS2344: Type 'Mixin' does not satisfy the constraint 'ComponentOptionsMixin'.
node_modules/vue/types/options.d.ts(120,7): error TS2344: Type 'Mixin' does not satisfy the constraint 'ComponentOptionsMixin'.
node_modules/vue/types/options.d.ts(146,5): error TS2344: Type 'Mixin' does not satisfy the constraint 'ComponentOptionsMixin'.
node_modules/vue/types/options.d.ts(157,7): error TS2344: Type 'Mixin' does not satisfy the constraint 'ComponentOptionsMixin'.


found in Definitely Typed's overnight run:
https://dev.azure.com/definitelytyped/DefinitelyTyped/_build/results?buildId=137502&view=logs&j=6399d89d-3d30-5fff-3e92-07bbaf7ebe2f&t=482eae7c-85d2-5e8a-ea70-a5ab41e9bc13&l=12739

Vue 2 dependents all broke on Typescript 4.8 (RC) and 4.9 (in development).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions