node-typescript-parser icon indicating copy to clipboard operation
node-typescript-parser copied to clipboard

`file.exports` always returns empty array

Open loicnestler opened this issue 4 years ago • 0 comments

Hey there!

Given the following input code:

export const add = async (
   data: {num1: number, num2: number}
) => {
   console.log(`Adding ${num1} + ${num2}`)

   return data.num1 + data.num2
}

export default {
   name: "example-module",
}

file.exports returns an empty array.

Am I using this library wrong, or isn't file.exports implemented yet?

loicnestler avatar Nov 23 '21 21:11 loicnestler