MCPcopy
hub / github.com/TypeStrong/ts-node / evalCode

Method evalCode

src/repl.ts:64–64  ·  view source on GitHub ↗

* Append code to the virtual source file, compile it to JavaScript, throw semantic errors if the typechecker is enabled, * and execute it. * * Note: typically, you will want to call `start()` instead of using this method. * * @param code string of TypeScript.

(code: string)

Source from the content-addressed store, hash-verified

62 * @param code string of TypeScript.
63 */
64 evalCode(code: string): any;
65 /** @internal */
66 evalCodeInternal(opts: {
67 code: string;

Callers 2

evalAndExitOnTsErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected