Skip to main content

TripettoChat module

The TripettoChat module contains all the exported symbols of the Tripetto Chat Stock Runner package. It is also the library name of the UMD build of the package (the version that can run directly in the browser).

// Import the module
import { TripettoChat } from "@tripetto/runner-chat";

// Or use the default export
import TripettoChat from "@tripetto/runner-chat";

// Or import the entire module with a custom name
import * as TripettoChat from "@tripetto/runner-chat";
info

If you can import specific symbols, you should always go with that. Things like tree shaking are only possible when importing specific symbols.

import { run } from "@tripetto/runner-chat";
tip

When using the UMD build in the browser, the module will be available in the window object and as a global variable. So you can reference the module using window.TripettoChat or just TripettoChat.