return type of `create` cannot be named
tamird opened this issue · 2 comments
tamird commented
Line 70 in 1c2d584
redaxios
is not defined anywhere, so it cannot be used downstream. That is, it is impossible to define a function that takes the return type of create
as a parameter.
tamird commented
Ah, I misunderstood - the problem is also that create
is not exported at all, so it is not possible to create multiple clients.
EDIT: it is exported as redaxios.create
, but the type is still unnameable.
tamird commented
Ah, it's possible to work around this by writing {typeof redaxios.default}
in the jsdoc comment.