UNPKG
@stacksjs/dtsx
Version:
latest (0.11.1)
0.11.1
0.11.0
0.10.9
0.10.8
0.10.7
0.10.6
0.10.5
0.10.4
0.10.2
0.10.1
0.9.35
0.9.33
0.9.30
0.9.29
0.9.28
0.9.27
0.9.26
0.9.25
0.9.24
0.9.23
0.9.22
0.9.21
0.9.20
0.9.19
0.9.18
0.9.17
0.9.16
0.9.15
0.9.14
0.9.13
0.9.12
0.9.11
0.9.10
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.6.2
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
0.2.2
0.2.1
0.2.0
A modern, fast .d.ts generation tool, powered by Bun.
github.com/stacksjs/dtsx
stacksjs/dtsx
@stacksjs/dtsx
/
dist
/
chunk-41q4b5qr.js
8 lines
(7 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
// @bun
function
g
(
b,f=!
0
){
if
(!f||!b||b.
length
===
0
)
return
""
;
if
(b.
length
===
1
){
let
a=b[
0
];
if
(a.
length
>
0
&&a.
charCodeAt
(
0
)>
32
&&a.
charCodeAt
(a.
length
-
1
)>
32
)
return
`
${a}
`
;
return
`
${a.trim()}
`
}
let
d=
""
;
for
(
let
a=
0
;a<b.
length
;a++){
if
(a>
0
)d+=
` `
;d+=b[a].
trim
()}
return
`
${d}
`
}
export
{g
as
pe};