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