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

Typescript 4.4 breaking lib.d.ts changes break on chart.js #9666

Closed
ConsoleTVs opened this issue Sep 21, 2021 · 1 comment
Closed

Typescript 4.4 breaking lib.d.ts changes break on chart.js #9666

ConsoleTVs opened this issue Sep 21, 2021 · 1 comment

Comments

@ConsoleTVs
Copy link

ConsoleTVs commented Sep 21, 2021

microsoft/TypeScript-DOM-lib-generator#1029 (comment)

Typescript 4.4 breaks when compiling with chart.js due interface changes. There are missing interfaces since they have been removed and it fails to compile on bundlers like vite.

eg. Interface OffscreenCanvasRenderingContext2D has been removed and fails on:

export declare type ChartItem =
  | string
  | CanvasRenderingContext2D
  | OffscreenCanvasRenderingContext2D
  | HTMLCanvasElement
  | OffscreenCanvas
  | { canvas: HTMLCanvasElement | OffscreenCanvas }
  | ArrayLike<CanvasRenderingContext2D | HTMLCanvasElement | OffscreenCanvas>;
@etimberg
Copy link
Member

Duplicate of #9594. It's already fixed in main and will release with the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants