Add links to TaskOutput type
Signed-off-by: James Turley <james.turley@signalmedia.co> Signed-off-by: James Turley <jamesturley1905@googlemail.com>
This commit is contained in:
committed by
James Turley
parent
78c6e0d90f
commit
3dabebb5fa
@@ -19,6 +19,11 @@ import { scaffolderApiRef, LogEvent } from '../../api';
|
||||
import { ScaffolderTask, Status } from '../../types';
|
||||
import { Subscription, useApi } from '@backstage/core';
|
||||
|
||||
type OutputLink = {
|
||||
title: string;
|
||||
url: string;
|
||||
};
|
||||
|
||||
type Step = {
|
||||
id: string;
|
||||
status: Status;
|
||||
@@ -26,7 +31,10 @@ type Step = {
|
||||
startedAt?: string;
|
||||
};
|
||||
|
||||
type TaskOutput = { entityRef?: string } & { [key in string]: string };
|
||||
type TaskOutput = {
|
||||
entityRef?: string;
|
||||
links?: OutputLink[];
|
||||
} & { [key in string]: string };
|
||||
|
||||
export type TaskStream = {
|
||||
loading: boolean;
|
||||
|
||||
Reference in New Issue
Block a user