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-pwwfmfhh.js
4 lines
(3 loc)
•
197 B
JavaScript
View Raw
1
2
3
4
// @bun
var
o=
typeof
globalThis.
Bun
?.
hash
===
"function"
;
function
i
(
h
){
if
(o)
return
Bun
.
hash
(h);
let
t=
0
;
for
(
let
n=
0
;n<h.
length
;n++){
let
e=h.
charCodeAt
(n);t=(t<<
5
)-t+e,t=t&t}
return
t}
export
{i
as
xf};