Skip to content

[F] getReturnTypeChangedFrom

function getReturnTypeChangedFrom(p, t): Map<Version, Type> | undefined;

Gets operation return type changes in ascending version order, or undefined when none are recorded. Each key is the first version using the new return type; its value is the preceding return type. The returned map belongs to the program’s metadata and should not be modified.

ParameterTypeDescription
pProgramTypeSpec program
tTypetype to query

Map<Version, Type> | undefined

Map of versions to old types, if any