excaliburjs / Excalibur

🎮 Your friendly TypeScript 2D game engine for the web 🗡️
https://excaliburjs.com
BSD 2-Clause "Simplified" License
1.83k stars 192 forks source link

Support Types with native ESM modules #2367

Open eonarheim opened 2 years ago

eonarheim commented 2 years ago

Steps to Reproduce

See discussion https://github.com/excaliburjs/Excalibur/discussions/2366 for more context.

Using native .esm module from https://esm.sh/excalibur

import { Engine, Actor, CollisionType, ImageSource, Loader, Vector, Physics } from '../library/excalibur.esm.js'

let game = new Engine({...})
let enemy = new Actor({...})

// etc.

Expected Result

Type information should be included with native esm module

Actual Result

No type information is available

Environment

Current Workaround

Use the npm (node_module) install to get type information

github-actions[bot] commented 2 years ago

This issue hasn't had any recent activity lately and is being marked as stale automatically.