kuzzleio / kuzzle

Open-source Back-end, self-hostable & ready to use - Real-time, storage, advanced search - Web, Apps, Mobile, IoT -
https://kuzzle.io
Apache License 2.0
1.43k stars 123 forks source link

Export Kuzzle TS types to external package #2000

Closed alexandrebouthinon closed 9 months ago

alexandrebouthinon commented 3 years ago

To improve the developers experience when developing the KaaF plugin, we need to export the Kuzzle TS types (directory /lib/types) as an external NPM package like @types/kuzzle. This way we won't need to import the whole package of kuzzle to access it.

ScreamZ commented 1 year ago

@alexandrebouthinon Or you can just keep it that way and use https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export