I want to experiment with some Typescript code that I have written.
Currently, I usually run ts-node my-file-name.ts
to test it out.
But I am interested in making this process more interactive, similar to the Python REPL where you can import modules and call functions however you please.
For instance, a session could go like this:
$ ts-node
> import my-file-name.ts
> myFunctionFromMyFile("specialParam")
> "you just called a function from my-file-name.ts with param specialParam"
Is it feasible to achieve this with ts-node
?