pid / speakingurl

Generate a slug – transliteration with a lot of options
http://pid.github.io/speakingurl/
BSD 3-Clause "New" or "Revised" License
1.12k stars 84 forks source link

Broken typescript typings #104

Open NaridaL opened 7 years ago

NaridaL commented 7 years ago

The TS typings currently add stuff to the global scope, they should use something like http://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-function-d-ts.html so they work both in a browser env and when importing them as modules. Also add the typings to the "typings" field of the package.json so TS finds them when importing.

pid commented 7 years ago

@stonio can you take a look on it?