Before Requesting
Describe the feature you'd like!
So far it seems as though starlight ffi functions can only return primtive values, as right now trying to return a table will just return null.
---@ffi
function getTable()
return { a = 1, b = 2 }
end
const out = await backend.getTable()
// ^? null
And then would also be nice to type these, as both the following currently are unknown
---@return { a: number, b: number }
---@class Result
---@field a number
---@field b number
---@return Result
The latter also nested classes https://discord.com/channels/1102739071085846623/1317682877839970366/1539130724987437146
Anything else?
No response
Before Requesting
Describe the feature you'd like!
So far it seems as though starlight ffi functions can only return primtive values, as right now trying to return a table will just return
null.And then would also be nice to type these, as both the following currently are
unknown---@return { a: number, b: number }The latter also nested classes https://discord.com/channels/1102739071085846623/1317682877839970366/1539130724987437146
Anything else?
No response