Type alias ContractFunctionResult<TAbi, TFunctionName, TAbiFunction, TArgs, FailedToParseArgs>
ContractFunctionResult<TAbi, TFunctionName, TAbiFunction, TArgs, FailedToParseArgs>: true extends FailedToParseArgs
? unknown
: TArgs extends readonly []
? void
: TArgs extends readonly [infer Arg]
? Arg
: TArgs
Type Parameters
TAbi extends Abi | readonly unknown[] = Abi
TFunctionName extends string = string
TAbiFunction extends AbiFunction & {
type: "function";
} = TAbi extends Abi
? ExtractAbiFunction<TAbi, TFunctionName>
: AbiFunction
FailedToParseArgs = ([TArgs] extends [never]
? true
: false) | (readonly unknown[] extends TArgs
? true
: false)