keysFor: (
record: any,
) =>
| Promise<{ from: string; keys: any; ok: boolean }>
| Promise<{ errorCode: string; keys: any[]; ok: boolean; why: string }>
| Promise<
| {
errorCode: string;
from?: undefined;
keys: any[];
ok: boolean;
why: string;
}
| {
errorCode?: undefined;
from: string;
keys: any;
ok: boolean;
why?: undefined;
},
> = ...
Type Declaration
-
- (
record: any,
):
| Promise<{ from: string; keys: any; ok: boolean }>
| Promise<{ errorCode: string; keys: any[]; ok: boolean; why: string }>
| Promise<
| {
errorCode: string;
from?: undefined;
keys: any[];
ok: boolean;
why: string;
}
| {
errorCode?: undefined;
from: string;
keys: any;
ok: boolean;
why?: undefined;
},
>
-
Returns
| Promise<{ from: string; keys: any; ok: boolean }>
| Promise<{ errorCode: string; keys: any[]; ok: boolean; why: string }>
| Promise<
| {
errorCode: string;
from?: undefined;
keys: any[];
ok: boolean;
why: string;
}
| {
errorCode?: undefined;
from: string;
keys: any;
ok: boolean;
why?: undefined;
},
>
a promise of { ok, keys, from }, or { ok: false, keys: [], errorCode, why }
Forwards to
FederationSp.keysFor().