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
+2 -1
View File
@@ -6,6 +6,7 @@
/// <reference types="node" />
import { ExtensionPoint } from '@backstage/backend-plugin-api';
import { JsonObject } from '@backstage/types';
import { JsonValue } from '@backstage/types';
import { Logger } from 'winston';
import { Schema } from 'jsonschema';
@@ -15,7 +16,7 @@ import { Writable } from 'stream';
import { z } from 'zod';
// @public
export type ActionContext<TActionInput = unknown> = {
export type ActionContext<TActionInput extends JsonObject> = {
logger: Logger;
logStream: Writable;
secrets?: TaskSecrets;
+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;