Closed jingkaimori closed 1 year ago
Hi sorry I've been on vacation for the last 3 weeks. I'll try and take a look at this in the next few days.
I'll be willing to take the toPlatformStruct
changes but please run deno fmt
on the code. The changes from DynamicLibrary
to Deno.DynamicLibrary
are a no go for me.
So can we make DynamicLibrary infer return type from FFI symbol type? Some copy from deno is needed, with a MIT license
Honestly it's not needed. There is never any interaction directly with the FFI layer. Only generated code directly interacts with the FFI stuff. If you can figure out how to keep the names of the functions available via FFI I would gladly accept that but we don't need to copy the entire interface from deno.
This pr use
Deno.ForeignLibraryInterface
to improve type inference indenoLoadLibrary
, fix missingQuit
function in IMG and TTF, and adjust_data
property ofColor
class to avoid typescript error.