Skip to main content

VersionedValue

Home > @backstage/version-bridge > VersionedValue

The versioned value interface is a container for a set of values that can be looked up by version. It is intended to be used as a container for values that can be versioned independently of package versions.

Signature:

export type VersionedValue<Versions extends {
[version: number]: unknown;
}> = {
atVersion<Version extends keyof Versions>(version: Version): Versions[Version] | undefined;
};