interop

Making two systems work together, such as ES modules importing CommonJS packages.

In more detail

Node.js lets ES modules import CommonJS through a default import, and recent versions can also require ES modules. TypeScript's NodeNext settings model these rules so mismatches show up as compile errors.

Related terms

Taught in

References