As an example, when using try express it should automatically call in JS: const express = require('express') and in TypeScript: import * as express from 'expess'.
Therefore a developer can directly access the package as global variable.
For JS this is possible with
node --eval "const express = require('express')" -i
with TS this is currently not possible. PR has already been submitted TypeStrong/ts-node#894
As an example, when using
try expressit should automatically call in JS:const express = require('express')and in TypeScript:import * as express from 'expess'.Therefore a developer can directly access the package as global variable.
For JS this is possible with
node --eval "const express = require('express')" -iwith TS this is currently not possible. PR has already been submitted TypeStrong/ts-node#894