facebook / memlab

A framework for finding JavaScript memory leaks and analyzing heap snapshots
https://facebook.github.io/memlab/
MIT License
4.35k stars 118 forks source link

[question]: Does MemLab supports Typescript and EMS? #34

Closed Gumichocopengin8 closed 1 year ago

Gumichocopengin8 commented 1 year ago

Thank you for making a great framework. All examples I found in the doc are written in JS. Does MemLab support Typescript and EMS?

JacksonGL commented 1 year ago

Yes, MemLab supports TypeScript. The MemLab npm packages export types, here is an example and another example. But remember to compile your code before passing it as flags (e.g., --scenario, --leak-filter) to MemLab or before running your TypeScript code that uses the MemLab APIs.