Skip to main content

createExtensionInput()

Home > @backstage/frontend-plugin-api > createExtensionInput

Signature:

function createExtensionInput<UExtensionData extends ExtensionDataRef<unknown, string, {
optional?: true;
}>, TConfig extends {
singleton?: boolean;
optional?: boolean;
}>(extensionData: Array<UExtensionData>, config?: TConfig & {
replaces?: Array<{
id: string;
input: string;
}>;
}): ExtensionInput<UExtensionData, {
singleton: TConfig['singleton'] extends true ? true : false;
optional: TConfig['optional'] extends true ? true : false;
}>;

Parameters

Parameter

Type

Description

extensionData

Array<UExtensionData>

config

TConfig & { replaces?: Array<{ id: string; input: string; }>; }

(Optional)

**Returns:**

ExtensionInput<UExtensionData, { singleton: TConfig['singleton'] extends true ? true : false; optional: TConfig['optional'] extends true ? true : false; }>