Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenLayers and TypeScript?

I was wondering if anybody knows if there are any existing TypeScript definition files for OpenLayers (or if they are already in the making).

I tried parsing the OpenLayers source files myself and use the documentation comments to build a TypeScript definition file but to really make this work I would need a complete JavaScript parser that also understand the documentation syntax in OpenLayers (it uses NaturalDocs, http://naturaldocs.org) and I'm beginning to think that translating the info by hand is easier than writing such a parser :(.

So does anybody now of a similar project or has an idea how to accomplish the task of generating those TypeScript definition files?

Thanks in advance!

like image 929
chrischu Avatar asked Nov 03 '22 14:11

chrischu


1 Answers

I haven't seen any mention of an OpenLayers.d.ts file yet but there's a growing list of definition files being tracked over here.

like image 182
Steven Ickman Avatar answered Nov 09 '22 03:11

Steven Ickman