Type alias MethodsToContractApi<M>
Methods
To
Contract
Api
<M>: { [ Name in keyof M]: M[Name] extends ((...args
: infer Args
) => any) ? ((...args
: [...Args, ...[] | [Name extends "init" ? Parameters<Contract<M>["$deploy"]>[1] : Parameters<Contract<M>["$call"]>[2]]]) => ReturnType<Contract<M>["$call"]>) : never }