When I started this project, I had the lofty goal of a generic d.ts
typings generator that works off of JSDoc annotations for any plain JS project.
In reality, this project had a singular purpose: To generate a 100% coverage TypeScript definition file for the OpenLayers library. This project had fulfilled this singular purpose very well up to the latest 4.x release (4.6.5).
OpenLayers afterwards had changed their module structure to the point that this plugin no longer was able to generate a suitable TypeScript definition. Given there are competing efforts that have made better inroads than I have in this regard, I am no longer maintaining this project and have archived this repository.
If you are after TypeScript support for OpenLayers 5.x and newer, see:
Otherwise, feel free to fork this repo and see what you can do with the code. Good luck!
JSDoc plugin to automatically generate TypeScript Definitions from annotated source
npm install
npm run-script tsc
The compiled plugin will reside under plugins/typescript.js
Add the following snippet to your JSDoc configuration
{ "plugins": [ "plugins/typescript" ] }
Refer to configuration for plugin configuration options
TBD