fix type from String to string

Signed-off-by: Kiss Miklos <miklos@roadie.io>
This commit is contained in:
Kiss Miklos
2022-06-28 00:59:15 +02:00
parent 1e53a82d52
commit d653055746
4 changed files with 7 additions and 10 deletions
@@ -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);
+2 -2
View File
@@ -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;
};
/**