Type alias MethodsToContractApi<M>

MethodsToContractApi<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 }

Type Parameters

Generated using TypeDoc