TypeScript import/as vs import/require? [duplicate]
These are mostly equivalent, but import * has some restrictions that import … = require doesn’t. import * as creates an identifier that is a module object, emphasis on object. According to the ES6 spec, this object is never callable or newable – it only has properties. If you’re trying to import a function or … Read more