Docs

ReadContractResult

type ReadContractResult<outputs extends readonly Array<AbiParameter>> = outputs extends { length: 0 } ? never : outputs extends { length: 1 } ? AbiParametersToPrimitiveTypes<outputs>[0] : AbiParametersToPrimitiveTypes<outputs>