UNPKG
workcraft-js
Version:
latest (2.0.2)
2.0.2
2.0.1
2.0.0
1.1.0
1.0.0
0.5.20
0.5.18
0.5.16
0.5.15
0.5.14
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
Node module for Workcraft Workers
workcraft-js
/
tests
/
node_modules
/
http-proxy-middleware
/
dist
/
utils
/
logger-plugin.d.ts
8 lines
(7 loc)
•
255 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
type
{
Agent
}
from
'node:http'
;
export
type
Sockets
=
Pick
<
Agent
,
'sockets'
>;
/** * Get port from target * Using proxyRes.req.agent.sockets to determine the target port */
export
declare
function
getPort
(
sockets
?:
Sockets
):
string
|
undefined
;