UNPKG

@stacksjs/dtsx

Version:

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

4 lines (3 loc) 601 B
// @bun import{Pe as s,Re as i}from"./chunk-00wwzmta.js";import{Ve as l,We as u}from"./chunk-xpeszgey.js";import{kf as o}from"./chunk-736mzc3x.js";function A(){i(),u()}function g(e,r,a=!0,c=!1){return l(e,r,a,c)}async function y(e,r,a=!0,c={}){return await s(r,e,c),g(e,r,a)}async function F(e,r={}){let a=o(r.concurrency,4),c=new Map;for(let n=0;n<e.length;n+=a){let p=e.slice(n,n+a),m=await Promise.all(p.map(async(t)=>({path:t.filePath,declarations:await y(t.sourceCode,t.filePath,t.keepComments,r)})));for(let t of m)c.set(t.path,t.declarations)}return c} export{A as Ke,g as Le,y as Me,F as Ne};