Closed LmanTW closed 4 months ago
@LmanTW I tried adding types in v8.0.2-1
of @kmamal/gl
. Let me know if it works.
There seems to be some problem with WebGLContextAttributes
.
const window = sdl.video.createWindow({ opengl: true })
const ctx = createContext(window.pixelWidth, window.pixelHeight, { window: window.native })
// ^ Object literal may only specify known properties, and 'window' does not exist in type 'WebGLContextAttributes'.
@LmanTW Damn missed that one, try with v8.0.2-2
.
Actually give me a minute, I just setup typescript and I'll try it out myself.
@LmanTW With v8.0.2-5
it works for me.
Yep, it works fluently, thx!
It seems like @kmamal/gl doesn't support TypeScript yet. it'll be really nice if we have type declaration, thx!