Files
cosmos-explorer/src/Definitions/globals.d.ts
2020-05-25 21:30:55 -05:00

10 lines
368 B
TypeScript

/*
d3-shape depends on a global type CanvasPathMethods in lib.dom.d.ts, but this was renamed
to CanvasPath in TS 3.1. This file aliases the new type to the old type name to make
d3-shape happy.
See: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/27776
And: https://github.com/Microsoft/TSJS-lib-generator/issues/548
*/
type CanvasPathMethods = CanvasPath;