fix type from String to string
Signed-off-by: Kiss Miklos <miklos@roadie.io>
This commit is contained in:
@@ -66,7 +66,7 @@ export const processingResult = Object.freeze({
|
||||
return { type: 'relation', relation: spec };
|
||||
},
|
||||
|
||||
refresh(entityRef: String, key: String): CatalogProcessorResult {
|
||||
refresh(entityRef: string, key: string): CatalogProcessorResult {
|
||||
return { type: 'refresh', entityRef, key };
|
||||
},
|
||||
} as const);
|
||||
|
||||
@@ -172,8 +172,8 @@ export type CatalogProcessorErrorResult = {
|
||||
/** @public */
|
||||
export type CatalogProcessorRefreshKeysResult = {
|
||||
type: 'refresh';
|
||||
entityRef: String;
|
||||
key: String;
|
||||
entityRef: string;
|
||||
key: string;
|
||||
};
|
||||
|
||||
/** @public */
|
||||
|
||||
@@ -24,7 +24,7 @@ import { assertError } from '@backstage/errors';
|
||||
import { Logger } from 'winston';
|
||||
import { CatalogProcessorResult, EntityRelationSpec } from '../api';
|
||||
import { locationSpecToLocationEntity } from '../util/conversion';
|
||||
import { DeferredEntity } from './types';
|
||||
import { DeferredEntity, RefreshKeyData } from './types';
|
||||
import {
|
||||
getEntityLocationRef,
|
||||
getEntityOriginLocationRef,
|
||||
@@ -38,10 +38,7 @@ export class ProcessorOutputCollector {
|
||||
private readonly errors = new Array<Error>();
|
||||
private readonly relations = new Array<EntityRelationSpec>();
|
||||
private readonly deferredEntities = new Array<DeferredEntity>();
|
||||
private readonly refreshKeys = new Array<{
|
||||
key: String;
|
||||
entityRef: String;
|
||||
}>();
|
||||
private readonly refreshKeys = new Array<RefreshKeyData>();
|
||||
private done = false;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -50,8 +50,8 @@ export type EntityProcessingResult =
|
||||
* @public
|
||||
*/
|
||||
export type RefreshKeyData = {
|
||||
key: String;
|
||||
entityRef: String;
|
||||
key: string;
|
||||
entityRef: string;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user