Take for instance an ABI like this:
const abi = [
{
name: "myFirstFunction",
inputs: [
{
name: "param1",
type: "string"
}
],
outputs: [
{
name: "value1",
type: "string"
},
{
name: "value2",
type: "number"
}
]
}
]
What I want to achieve is an object type containing the functions defined in the ABI, like this:
Type MyABIFunctions = {
myFirstFunction: (param1: string) => [value1: string, value2: number]
}
Is something like this possible in Typescript?