Additional types in exports
dartess opened this issue · comments
Sergey Kozlov commented
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']
>;
Mikołaj Palkiewicz commented
Hi! Good catch, we will publish this feature soon.
Mikołaj Palkiewicz commented
Published in 1.5.0.