Skip to content
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

Additional types in exports #121

Closed
dartess opened this issue Apr 24, 2023 · 2 comments
Closed

Additional types in exports #121

dartess opened this issue Apr 24, 2023 · 2 comments

Comments

@dartess
Copy link

dartess commented Apr 24, 2023

HI! Can you please export BotDetectionResult from package?

Now the type can also be obtained, but this can only be done with a terrible construction like this:

type BotDetectionResult = ReturnType<
  (ReturnType<typeof load> extends Promise<infer T> ? T : never)['detect']
>;
@xnerhu
Copy link
Contributor

xnerhu commented Apr 25, 2023

Hi! Good catch, we will publish this feature soon.

@xnerhu
Copy link
Contributor

xnerhu commented May 8, 2023

Published in 1.5.0.

@xnerhu xnerhu closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants