Please note that this typing is only a quick and dirty solution. No comments have been jet added.

Installation

For now, copy index.d.ts and include it into your angular project. After some refactoring and optimization has been done, this will be forwarded to be availble via @types.

Installation via AngularCLI

If you are using angularcli, create a new folder under node_modules/@types, call it "leaflet-search" and save index.d.ts there.

Include it like this in your component: include 'leaflet-search' and add the dependencies under "scripts" in your angular-cli.json.

Summary

This package contains type definitions for leaflet-search (https://github.com/stefanocudini/leaflet-search).

Details

Additional Details

  • Dependencies: leaflet
  • Global values: L

Credits

These definitions were written by Sebastian Kiepsch (https://basti-sk.com)