replaceKeySet: (
realmId: any,
keys: any,
why: any,
) =>
| {
generation?: undefined;
held?: undefined;
offered?: undefined;
ok: boolean;
reason: string;
why: any;
}
| {
generation?: undefined;
held: number;
offered: number;
ok: boolean;
reason: string;
why?: undefined;
}
| {
generation: number;
held?: undefined;
offered?: undefined;
ok: boolean;
reason?: undefined;
why?: undefined;
} = replaceKeySet
Installs a newer generation of a realm's key set everywhere a copy lives: the shared blob, the store, the signing cache and the other processes.
Refused when its generation is not above the one held. Never throws.