From aedb038a8b3bfe19b91c33022db2fbe17f5dc784 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 8 Jul 2022 10:43:49 +0200 Subject: [PATCH] backend-plugin-api: use type instead of interface to work around api-extractor bug Signed-off-by: Patrik Oldsberg --- packages/backend-plugin-api/src/services/system/types.ts | 4 ++-- packages/backend-plugin-api/src/wiring/types.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend-plugin-api/src/services/system/types.ts b/packages/backend-plugin-api/src/services/system/types.ts index 40534fcbcb..66b3e89e3c 100644 --- a/packages/backend-plugin-api/src/services/system/types.ts +++ b/packages/backend-plugin-api/src/services/system/types.ts @@ -19,7 +19,7 @@ * * @public */ -export interface ServiceRef { +export type ServiceRef = { id: string; /** @@ -31,7 +31,7 @@ export interface ServiceRef { toString(): string; $$ref: 'service'; -} +}; type TypesToServiceRef = { [key in keyof T]: ServiceRef }; type DepsToDepFactories = { diff --git a/packages/backend-plugin-api/src/wiring/types.ts b/packages/backend-plugin-api/src/wiring/types.ts index 746d47b355..be4bf949e7 100644 --- a/packages/backend-plugin-api/src/wiring/types.ts +++ b/packages/backend-plugin-api/src/wiring/types.ts @@ -21,7 +21,7 @@ import { ServiceRef } from '../services/system/types'; * * @public */ -export interface ExtensionPoint { +export type ExtensionPoint = { id: string; /** @@ -34,7 +34,7 @@ export interface ExtensionPoint { toString(): string; $$ref: 'extension-point'; -} +}; export function createExtensionPoint(options: { id: string;