deno
a38a1f91 - chore(ext/ffi): simplify FFI types (#14920)

Commit
4 years ago
chore(ext/ffi): simplify FFI types (#14920) This commit simplifies the TypeScript types used for interacting with Deno FFI. The basis is that types are now first grouped into logical wholes, NativeNumberType, NativeBigIntType etc. These wholes are combined into the NativeType and NativeResultType general types. Additionally, this PR removes the { function: { parameters: [], result: "void" } } type declaration from parameters (and result types. Now functions are merely passed and returned as "function".
Author
Parents
Loading