You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typescript 2.4. '.../multiplex.d.ts' is not a module
while using the import syntax: import * as mx from "multiplexjs";
Not sure about the exact resolution, I guess the definition should be different depending on global browser, or ES6 module usage.
My workround is to use:
import "multiplexjs"; // makes the mx type definition usable
const mx: mx.MultiplexStatic = require("multiplexjs"); // makes the mx static function available
The text was updated successfully, but these errors were encountered:
Typescript 2.4.
'.../multiplex.d.ts' is not a module
while using the import syntax:
import * as mx from "multiplexjs";
Not sure about the exact resolution, I guess the definition should be different depending on global browser, or ES6 module usage.
My workround is to use:
The text was updated successfully, but these errors were encountered: