Does not detect this style of function: ```ts const m = (num: number) => Number(num.toFixed(2)); ```
Activity
whyboris commentedon Jun 11, 2020
Thank you!
At the moment I'm focusing on getting the visualization done.
First draft: #1
But I plan to add several more visualization types as well.
Once that's ironed out I'll look into detecting fat arrow functions too 🤝
chapmanjacobd commentedon Jun 11, 2020
it's strange that it doesn't work... I would think that
isFunctionDeclarationwould detect arrowFunctions.maybe
arrowFunctionExpression??maybe this will help: https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/runtime/closure/parseFunction.ts
whyboris commentedon Jun 11, 2020
I think there exists
isArrowFunctionand could simply be included in my check 🤔https://github.com/microsoft/TypeScript/blob/35c1ba67baac2fd5152908184f8b2ec565815942/lib/typescript.d.ts#L3648
whyboris commentedon Jun 11, 2020
Feel free to try it out on this line:
https://github.com/whyboris/TypeScript-Call-Graph/blob/master/extract.ts#L26
👍
chapmanjacobd commentedon Jun 12, 2020
hmmm I tried it but didn't get it to work.
https://github.com/ZEISS/typescript-plugin-inner-jsx/blob/master/src/createTransformer.ts
chaofan-nirvana commentedon Jul 16, 2020
I tried my version of the issue, worked as my expectation.
WarriorTrading@5d554a6
whyboris commentedon Jul 25, 2020
Closed by #5 🎉
Thank you to @WarriorTrading and @chaofan-nirvana and @chapmanjacobd 🙇