-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose types again #153
Comments
I don't recall exporting these types at the top level... This should still work:
|
+1 for top level imports import { SearchClient } from 'typesense';
import { ConfigurationOptions } from 'typesense/lib/Typesense/Configuration';
import { SearchParams } from 'typesense/lib/Typesense/Documents';
import { SearchOnlyCollection } from 'typesense/lib/Typesense/SearchOnlyCollection'; |
Just ran into this issue, would be good to at least document how Typesense is supposed to be used with TypeScript. The import path is not at all obvious and there is no auto-import in VS Code. If I wouldn't have found this open issue on GH, I'd be stuck with no types from Typesense. |
This is addressed by #261, alongside the general build system. It should now be available through the entrypoint. |
I previously imported these types:
It looks like they're no longer exported by the library. Would be nice to have this to build custom hooks with.
The text was updated successfully, but these errors were encountered: