ResolveInputValueOverrides
Home > @backstage/frontend-plugin-api
> ResolveInputValueOverrides
Signature:
export type ResolveInputValueOverrides<TInputs extends {
[inputName in string]: ExtensionInput<AnyExtensionDataRef, {
optional: boolean;
singleton: boolean;
}>;
} = {
[inputName in string]: ExtensionInput<AnyExtensionDataRef, {
optional: boolean;
singleton: boolean;
}>;
}> = Expand<{
[KName in keyof TInputs as TInputs[KName] extends ExtensionInput<any, {
optional: infer IOptional extends boolean;
singleton: boolean;
}> ? IOptional extends true ? never : KName : never]: TInputs[KName] extends ExtensionInput<infer IDataRefs, {
optional: boolean;
singleton: infer ISingleton extends boolean;
}> ? ISingleton extends true ? Iterable<ExtensionDataRefToValue<IDataRefs>> : Array<Iterable<ExtensionDataRefToValue<IDataRefs>>> : never;
} & {
[KName in keyof TInputs as TInputs[KName] extends ExtensionInput<any, {
optional: infer IOptional extends boolean;
singleton: boolean;
}> ? IOptional extends true ? KName : never : never]?: TInputs[KName] extends ExtensionInput<infer IDataRefs, {
optional: boolean;
singleton: infer ISingleton extends boolean;
}> ? ISingleton extends true ? Iterable<ExtensionDataRefToValue<IDataRefs>> : Array<Iterable<ExtensionDataRefToValue<IDataRefs>>> : never;
}>;
References: ExtensionInput, AnyExtensionDataRef, ExtensionDataRefToValue