TemplateActionOptions
Home > @backstage/plugin-scaffolder-node
> TemplateActionOptions
Signature:
export type TemplateActionOptions<TActionInput extends JsonObject = {}, TActionOutput extends JsonObject = {}, TInputSchema extends Schema | z.ZodType = {}, TOutputSchema extends Schema | z.ZodType = {}> = {
id: string;
description?: string;
examples?: TemplateExample[];
supportsDryRun?: boolean;
schema?: {
input?: TInputSchema;
output?: TOutputSchema;
};
handler: (ctx: ActionContext<TActionInput, TActionOutput>) => Promise<void>;
};
References: JsonObject, TemplateExample, ActionContext