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
};
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
I'm not sure if this is the expected behaviour, but arrow style functions are missing comments when building with
tsup
myfile.ts
dist/index.d.ts
Upvote & Fund