fingerprintjs / BotD

Bot detection library that runs in the browser. Detects automation tools and frameworks. No server required, runs 100% on the client. MIT license, no usage restrictions.

Home Page:https://fingerprintjs.github.io/BotD/main/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Additional types in exports

dartess opened this issue · comments

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']
>;

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

Published in 1.5.0.