I found this file :
https://www.npmjs.com/package/@types/matter-js
i execute this line :
npm install --save @types/matter-js
In root ts file i got error message :
'Matter' refers to a UMD global, but the current file is a module. Consider adding an import instead.
Code looks like :
///<reference path="matter-js.d.ts"/>
import Ioc from "./libs/ioc";
let master = new Ioc();
console.log(master);
console.log(Matter);
Error in browser:
app.ts:11 Uncaught ReferenceError: Matter is not defined
Did i need to load matter-js.js lib ?
If i put :
import matter from 'matter-js'
i get :
Module ''matter-js'' has no default export.