Skip to content
New issue

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

Cannot start with TS 3.9.3 #1261

Closed
smallp opened this issue May 29, 2020 · 3 comments
Closed

Cannot start with TS 3.9.3 #1261

smallp opened this issue May 29, 2020 · 3 comments

Comments

@smallp
Copy link

smallp commented May 29, 2020

Version

3.0.0-beta.14

Reproduction link

https://github.com/katoto/vue3-typescipt

Steps to reproduce

create a basic example, update to TS 3.9.3 and run it.

What is expected?

Start.

What is actually happening?

ERROR in /Users/small/Documents/front/vue-next-project/node_modules/@vue/runtime-core/dist/runtime-core.d.ts(437,20):
437:20 Type 'Function & T[key]["get"]' does not satisfy the constraint '(...args: any) => any'.
  Type 'Function' provides no match for the signature '(...args: any): any'.
    435 |     [key in keyof T]: T[key] extends {
    436 |         get: Function;
  > 437 |     } ? ReturnType<T[key]['get']> : ReturnType<T[key]>;
        |                    ^
    438 | };
    439 | 
    440 | export declare type ExtractPropTypes<O, MakeDefaultRequired extends boolean = true> = O extends object ? {
ERROR in /Users/small/Documents/front/vue-next-project/node_modules/@vue/runtime-core/dist/runtime-core.d.ts(437,48):
437:48 Type 'T[key]' does not satisfy the constraint '(...args: any) => any'.
  Type 'T[keyof T]' is not assignable to type '(...args: any) => any'.
    Type 'T[string] | T[number] | T[symbol]' is not assignable to type '(...args: any) => any'.
      Type 'T[string]' is not assignable to type '(...args: any) => any'.
    435 |     [key in keyof T]: T[key] extends {
    436 |         get: Function;
  > 437 |     } ? ReturnType<T[key]['get']> : ReturnType<T[key]>;
        |                                                ^
    438 | };
    439 | 
    440 | export declare type ExtractPropTypes<O, MakeDefaultRequired extends boolean = true> = O extends object ? {
Version: typescript 3.9.3
Time: 3919ms
@pikax
Copy link
Member

pikax commented May 29, 2020

PR #1106

@CaiPeng1989
Copy link

You can temporarily use this configuration to resolve the error

"skipLibCheck": true

@yyx990803
Copy link
Member

Closed via #1106

@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants