2 Commits

Author SHA1 Message Date
Matt Walker
c4b680881a Simplify layer Options and export all interfaces and types
Instead of trying to modify OpenLayers layer Options interfaces
directly, extend Base and Group Options interfaces with LayerSwitcher
specific properties.

All types and interfaces are now exported so they can be used as
required in a consumers TypeScript project.
2020-11-24 16:57:48 +00:00
Matt Walker
c52a8f0dc8 Improve docs
* Upgrade documentation for TypeScript support
* Use `as` syntax to cast as documentation doesn't support <> syntax ATM
* Add TypeScript notes to README and generally improve API docs
2020-11-09 09:35:34 +00:00