Skip to content

[F] getTypeChangedFrom

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

Gets property type changes in ascending version order, or undefined when none are recorded. Each key is the first version using the new type; its value is the type used before that change. 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