Skip to main content

StorageValueSnapshot

Home > @backstage/core-plugin-api > StorageValueSnapshot

A snapshot in time of the current known value of a storage key.

Signature:

export type StorageValueSnapshot<TValue extends JsonValue> = {
key: string;
presence: 'unknown' | 'absent';
value?: undefined;
} | {
key: string;
presence: 'present';
value: TValue;
};

References: JsonValue