Replies: 1 comment
-
Good point! Naming definitely could be improved here. (No concrete proposal on my end right now. Just commenting so you know this has been seen.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I expected
client.transport
to be what I understand as a transport, i.e. something I can pass into a client constructor, of typeTransport
. But I found that it isn't, and I learned that transports are functions and thatclient.transport
is (more or less) the return value of that function.I'd think the
transport
property of clients should have a different name. I would also expect to be able to recover the actual (?) transport out of a client.The documentation could mention this distinction between the transport function and its result as well.
Beta Was this translation helpful? Give feedback.
All reactions