backend-plugin-api: Remove deprecated types
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* Copyright 2024 The Backstage Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {
|
||||
ServiceRef,
|
||||
ServiceRefOptions,
|
||||
RootServiceFactoryOptions,
|
||||
PluginServiceFactoryOptions,
|
||||
} from './services';
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Use {@link ServiceRefOptions} instead
|
||||
*/
|
||||
export type ServiceRefConfig<
|
||||
TService,
|
||||
TScope extends 'root' | 'plugin',
|
||||
TInstances extends 'singleton' | 'multiton',
|
||||
> = ServiceRefOptions<TService, TScope, TInstances>;
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Use {@link RootServiceFactoryOptions} instead
|
||||
*/
|
||||
export type RootServiceFactoryConfig<
|
||||
TService,
|
||||
TInstances extends 'singleton' | 'multiton',
|
||||
TImpl extends TService,
|
||||
TDeps extends { [name in string]: ServiceRef<unknown> },
|
||||
> = RootServiceFactoryOptions<TService, TInstances, TImpl, TDeps>;
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Use {@link PluginServiceFactoryOptions} instead
|
||||
*/
|
||||
export type PluginServiceFactoryConfig<
|
||||
TService,
|
||||
TInstances extends 'singleton' | 'multiton',
|
||||
TContext,
|
||||
TImpl extends TService,
|
||||
TDeps extends { [name in string]: ServiceRef<unknown> },
|
||||
> = PluginServiceFactoryOptions<TService, TInstances, TContext, TImpl, TDeps>;
|
||||
@@ -24,4 +24,3 @@ export * from './services';
|
||||
export type { BackendFeature, BackendFeatureCompat } from './types';
|
||||
export * from './paths';
|
||||
export * from './wiring';
|
||||
export * from './deprecated';
|
||||
|
||||
Reference in New Issue
Block a user