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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user