I have a js file that, when generating types, leads to duplicate entries for each function in the object.
test.js
const test = {
/**
*
* @param {string} testID
* @returns {void}
*/
initialize(testID) {
// I do nothing
},
};
export default test;
test.d.js
export default test;
declare namespace test {
/**
*
* @param {string} testID
* @returns {void}
*/
function initialize(testID: string): void;
/**
*
* @param {string} testID
* @returns {void}
*/
function initialize(testID: string): void;
}
What gives?