UNPKG

@stacksjs/dtsx

Version:

A modern, fast .d.ts generation tool, powered by Bun.

4 lines (3 loc) 197 B
// @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};