Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

'.../multiplex.d.ts' is not a module #31

Description

@patroza

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions