Notes for TypeScript users

When you use Typescript to build a webapp and compile it to Javascript, install tcell-agent as follows:

Installing the tCell agent
1
import "tcell-agent";

Importing tcell-agent any differently can lead to an error condition where TypeScript demands an unnecessary bindings file. Also, note that frontend libraries such as React start the same way as an Express server, with npm start, so we recommend importing the agent on the server side.

The following commands are interchangeable in TypeScript:

  • import "tcell-agent";
  • require('tcell-agent');