eva-engine / eva.js

Eva.js is a front-end game engine specifically for creating interactive game projects.
https://eva.js.org
MIT License
1.75k stars 108 forks source link

Add TypeScript declaration for components constructor. #19

Closed fanmingfei closed 3 years ago

fanmingfei commented 3 years ago
import { Img } from '@eva/plugin-renderer-img'
const img = new Img({
  resource: 'xxx'
})

Expected Behavior

image

Current Behavior

image