I'm currently working on integrating TypeScript support for the Leaflet Plugin found here: https://github.com/yakitoritabetai/Leaflet.LabelTextCollision
Is there anyone familiar with how I can accomplish this task? I've been attempting to create a .d.ts file, but due to the plugin exposing the entire extension of the Canvas class and hiding everything within block scope, I'm unsure how to declare types for all methods and arguments.
L.LabelTextCollision = L.Canvas
.extend({ ... });
If possible, could someone provide guidance on where to begin if my objective is to provide full TS support for the plugin? Thank you!
I've tried referencing the TypeScript documentation, but Plugins appear to be quite unique in their implementation.