backend-plugin-api: use type instead of interface to work around api-extractor bug

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-07-08 10:43:49 +02:00
parent 506ddb6ac8
commit aedb038a8b
2 changed files with 4 additions and 4 deletions
@@ -19,7 +19,7 @@
*
* @public
*/
export interface ServiceRef<T> {
export type ServiceRef<T> = {
id: string;
/**
@@ -31,7 +31,7 @@ export interface ServiceRef<T> {
toString(): string;
$$ref: 'service';
}
};
type TypesToServiceRef<T> = { [key in keyof T]: ServiceRef<T[key]> };
type DepsToDepFactories<T> = {
@@ -21,7 +21,7 @@ import { ServiceRef } from '../services/system/types';
*
* @public
*/
export interface ExtensionPoint<T> {
export type ExtensionPoint<T> = {
id: string;
/**
@@ -34,7 +34,7 @@ export interface ExtensionPoint<T> {
toString(): string;
$$ref: 'extension-point';
}
};
export function createExtensionPoint<T>(options: {
id: string;