[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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
p | Program | TypeSpec program |
t | Type | type to query |
Returns
Section titled “Returns”Map<Version, Type> | undefined
Map of versions to old types, if any