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

Update TypeScript to v4.6+ #720

Closed
teppeis opened this issue Jul 31, 2022 · 0 comments · Fixed by #738
Closed

Update TypeScript to v4.6+ #720

teppeis opened this issue Jul 31, 2022 · 0 comments · Fixed by #738

Comments

@teppeis
Copy link
Member

teppeis commented Jul 31, 2022

tsc throws errors with typescript@4.6.

$ npm run build       

> @cybozu/duck@0.33.3 build
> tsc

node_modules/@types/verror/index.d.ts:31:5 - error TS2416: Property 'cause' in type 'VError' is not assignable to the same property in base type 'Error'.
  Property 'message' is missing in type '() => Error | undefined' but required in type 'Error'.

31     cause(): Error | undefined;
       ~~~~~

  node_modules/typescript/lib/lib.es5.d.ts:1023:5
    1023     message: string;
             ~~~~~~~
    'message' is declared here.

node_modules/@types/verror/index.d.ts:31:5 - error TS2425: Class 'Error' defines instance member property 'cause', but extended class 'VError' defines it as instance member function.

31     cause(): Error | undefined;
       ~~~~~


Found 2 errors in the same file, starting at: node_modules/@types/verror/index.d.ts:31

It will be resolved in next TypeScript 4.8.

See

@teppeis teppeis changed the title Update TypeScript v4.6+ Update TypeScript to v4.6+ Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant