chore: fixing the action context

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-02-28 10:52:03 +01:00
parent a5b890b57d
commit 0afbe44ab9
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -16,16 +16,17 @@
import { Logger } from 'winston';
import { Writable } from 'stream';
import { JsonValue } from '@backstage/types';
import { JsonObject, JsonValue } from '@backstage/types';
import { TaskSecrets } from '../tasks/types';
import { TemplateInfo } from '@backstage/plugin-scaffolder-common';
import { UserEntity } from '@backstage/catalog-model';
import { Schema } from 'jsonschema';
/**
* ActionContext is passed into scaffolder actions.
* @public
*/
export type ActionContext<TActionInput = unknown> = {
export type ActionContext<TActionInput extends JsonObject> = {
logger: Logger;
logStream: Writable;
secrets?: TaskSecrets;