backend-plugin-api: Remove ServiceFactoryOrFunction type
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -20,6 +20,5 @@ export type {
|
||||
ServiceFactory,
|
||||
PluginServiceFactoryOptions,
|
||||
RootServiceFactoryOptions,
|
||||
ServiceFactoryOrFunction,
|
||||
} from './types';
|
||||
export { createServiceRef, createServiceFactory } from './types';
|
||||
|
||||
@@ -76,14 +76,6 @@ export interface InternalServiceFactory<
|
||||
): Promise<TService>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents either a {@link ServiceFactory} or a function that returns one.
|
||||
*
|
||||
* @deprecated The support for service factory functions is deprecated and will be removed.
|
||||
* @public
|
||||
*/
|
||||
export type ServiceFactoryOrFunction = ServiceFactory | (() => ServiceFactory);
|
||||
|
||||
/** @public */
|
||||
export interface ServiceRefOptions<
|
||||
TService,
|
||||
|
||||
Reference in New Issue
Block a user