The npm azure-maps-controls
package is broken when using strict
mode for typescript compilation. This is due to
export abstract class ControlBase<T = any> extends internal.EventEmitter<T> implements Control { /* Type definition */ }
The error is due to internal.EventEmitter
constraining T
to T extends internal.EventArgs
so this constraint also needs to be applied to ControlBase<T extends intenral.EventArgs = any>
There is another type error in azure-maps-drawing-tools
in the type definition of DrawingManager
the definition of public edit(shape: azmaps.Shape)
is missing a return type. As this method does not return anything it should be updated to public edit(shape: azmaps.Shape): void
Due to the issues neither of the packages will compile when using Typescript in strict
mode, unless skipLibCheck
is set to false
in the tsconfig
file.
Apologies if this is the wrong place to put this but I don't seem to be able to find a bug tracker for either of these packages that I can find I am just putting this here.