Typings for new connect method
# workers-help
d
Is there any typings for the new TCP connect method yet? I'm using
@cloudflare/workers-types@next
and I can't seem to find any typings for it. Adding the following to
types.d.ts
works:
Copy code
ts
declare module "cloudflare:sockets" {
    export function connect(address: SocketAddress | string, options?: SocketOptions): Socket
}
d
It's coming very soon, there's a PR open that will include them - look for the next release!
d
thanks ❤️