SDFIdk / gsearch-ui

Web component that implements a simple UI for GSearch. NPM package available
https://sdfidk.github.io/gsearch-ui/
MIT License
1 stars 0 forks source link

Missing TypeScript types #50

Open woutervanvliet opened 1 month ago

woutervanvliet commented 1 month ago

The component cannot be used in a TypeScript project, as no types are included,

Importing GSearchUI results in the following TS error:

TS7016: Could not find a declaration file for module @dataforsyningen/ gsearch-ui.

Gebuz commented 4 weeks ago

You should still be able to use it in a TypeScript project, but it requires a work around. Here is one way to do it: https://medium.com/@steveruiz/using-a-javascript-library-without-type-declarations-in-a-typescript-project-3643490015f3#3673

woutervanvliet commented 3 weeks ago

Sure, that's possible. But far from ideal