The type of the host and domain parameter in several methods of TCPSocket and Addrinfo is effectively String. This patch adds the respective type restriction.
Other parameters could use similar restrictions, but might need more research. port/service seems to accept Int | String, for example.
The type of the
host
anddomain
parameter in several methods ofTCPSocket
andAddrinfo
is effectivelyString
. This patch adds the respective type restriction.Other parameters could use similar restrictions, but might need more research.
port
/service
seems to acceptInt | String
, for example.Resolves #14699