The "normal" way of importing excalibur seems to be by including it in a webpage. However, when I try to import it in the standard typescript method(s) i.e.:
import * as ex from "excalibur";
or
import ex = require("excalibur");
The Typescript compiler gives an error. This isn't because it can't find the d.ts file - it can. Instead, the error given is "error TS2306: File '.../node_modules/excalibur/dist/excalibur.d.ts' is not a module."
This seems to indicate that the d.ts file is not a valid Typescript module, for one of a variety of reasons. Does anyone have any experience trying to do the above?