make async and readonly
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
committed by
Fredrik Adelöw
parent
92f5823498
commit
6cf2ba39d9
@@ -22,7 +22,14 @@ export interface InstanceMetadataServicePluginInfo {
|
||||
}[];
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export type DeepReadonly<T> = {
|
||||
readonly [K in keyof T]: T[K] extends object ? DeepReadonly<T[K]> : T[K];
|
||||
};
|
||||
|
||||
/** @public */
|
||||
export interface InstanceMetadataService {
|
||||
getInstalledPlugins: () => readonly InstanceMetadataServicePluginInfo[];
|
||||
getInstalledPlugins: () => Promise<
|
||||
ReadonlyArray<DeepReadonly<InstanceMetadataServicePluginInfo>>
|
||||
>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user