estus estus -4 years ago 337
TypeScript Question

ts-node programmatic usage with require('ts-node/register')

suggests to use
. And this can be seen in
Protractor configuration.

What is
supposed to do? Does it patch
to transpile TS files, so a part of Node.js application could be written in TypeScript?

Answer Source

It does what you think it does. require('ts-node/register') is actually the same as:

    lazy: true

See here

The .register function registers the Typescript compiler for files with .ts and .tsx extension for compilation on the fly.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download