I'm not sure if this is the expected behaviour, but arrow style functions are missing comments when building with tsup
myfile.ts
/**
* Comment 1
*/
function formatUnits(
value: bigint | number | string,
decimalsOrUnit: bigint | number | WEI_UNITS = VET_DECIMAL_EXPONENT
): string { ... }
/**
* Comment 2
*/
const formatVET = (value: bigint | number | string): string => {
return formatUnits(value, VET_DECIMAL_EXPONENT);
};
export const unitsUtils = {
formatUnits, // function
formatVET, // arrow function
};
dist/index.d.ts
/**
* Comment 1
*/
declare function formatUnits(value: bigint | number | string, decimalsOrUnit?: bigint | number | WEI_UNITS): string;
declare const unitsUtils: {
formatUnits: typeof formatUnits; // navigates to the type with original comments
formatVET: (value: bigint | number | string) => string; // is missing the original comments
};
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too