UNPKG
@cto.ai/ops
Version:
beta (1.16.0-beta)
latest (1.19.23)
next (2.0.0-rc.5)
2.0.0-rc.5
2.0.0-rc.4
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
2.0.0-rc.0
1.19.23
1.19.22
1.19.21
1.19.20
1.19.19
1.19.18
1.19.17
1.19.16
1.19.15
1.19.14
1.19.13
1.19.12
1.19.11
1.19.10
1.19.9
1.19.8
1.19.7
1.19.6
1.19.5
1.19.4
1.19.3
1.19.2
1.19.1
1.18.12
1.18.11
1.18.10
1.18.9
1.18.8
1.18.7
1.18.6
1.18.5
1.18.4
1.18.3
1.18.2
1.18.0
1.17.1
1.17.0
1.16.0
1.16.0-beta
1.15.0
1.14.11
1.14.8
1.14.6
1.14.5
1.14.4
1.14.2
1.14.1
1.14.0
1.13.5
1.13.4
1.13.3
1.13.2
1.13.1
1.13.0
1.12.0
1.11.0
1.10.5
1.10.4
1.10.3
1.10.2
1.10.1
1.10.0
1.9.3
1.9.2
1.9.1
1.9.0
1.8.15
1.8.14
1.8.13
1.8.12
1.8.10
1.8.8
1.8.7
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.3
1.7.2
1.7.1
1.7.0
1.6.22
1.6.21
1.6.20
1.6.19
1.6.18
1.6.17
1.6.16
1.6.15
1.6.13
1.6.12
1.6.11
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.5.25
1.5.24
1.5.23
1.5.22
1.5.21
1.5.19
1.5.18
1.5.17
1.5.14
1.5.13
1.5.12
1.5.11
1.5.10
1.5.9
1.5.8
1.5.7
1.5.6
1.5.3
1.5.2
1.5.1
1.4.29
1.4.28
1.4.27
1.4.26
1.4.25
1.4.24
1.4.23
1.4.22
1.4.21
1.4.20
1.4.19
1.4.18
1.4.16
1.4.15
1.4.13
1.4.12
1.4.11
1.4.10
1.4.9
1.4.8
1.4.6
1.4.5
1.4.3
1.4.2
1.4.1
1.4.0
1.3.20
1.3.18
1.3.17
1.3.16
1.3.15
1.3.14
1.3.11
1.3.9
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.0.47
1.0.46
1.0.45
1.0.44
1.0.43
1.0.42
1.0.41
1.0.40
1.0.39
1.0.38
1.0.37
1.0.36
1.0.35
1.0.34
1.0.33
1.0.32
1.0.31
1.0.30
1.0.26
1.0.24
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
💻 CTO.ai Ops - The CLI built for Teams 🚀
cto.ai/platform
@cto.ai/ops
/
lib
/
utils
/
ports.d.ts
6 lines
(5 loc)
•
215 B
TypeScript
View Raw
1
2
3
4
5
6
/** * Takes in an array of numbers, and returns the first one ith available port. * If no ports are available, return null */
export
declare
const
getFirstActivePort
:
(
ports
:
number
[]
) =>
Promise
<
number
|
null
>;