-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Issue or Feature
- If this is an issue with installation, I have read the troubleshooting guide.
Steps to Reproduce
https://github.com/SimenB/canvas-ts
node_modules/canvas/types/index.d.ts:170:2 - error TS2416: Property 'globalCompositeOperation' in type 'NodeCanvasRenderingContext2D' is not assignable to the same property in base type 'CanvasRenderingContext2D'.
Type '"clear" | "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | ... 16 more ... | "destination"' is not assignable to type 'GlobalCompositeOperation'.
Type '"clear"' is not assignable to type 'GlobalCompositeOperation'.
170 globalCompositeOperation: 'saturate' | 'clear' | 'copy' | 'destination' | 'source-over' | 'destination-over' |
~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in node_modules/canvas/types/index.d.ts:170
Your Environment
- Version of node-canvas (output of
npm list canvasoryarn list canvas): 2.9.0 - Environment (e.g. node 4.2.0 on Mac OS X 10.8): Node 16.14.0 on macOS 12.2.1 (TypeScript 4.6)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels