avoid exporting BackendFeatureFactory

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-08-08 13:47:36 +02:00
parent 9261f22f1c
commit a58fc22210
6 changed files with 5 additions and 28 deletions
@@ -16,7 +16,6 @@
import {
BackendFeature,
BackendFeatureFactory,
RootConfigService,
coreServices,
createServiceFactory,
@@ -121,11 +120,10 @@ function isBackendFeature(value: unknown): value is BackendFeature {
function isBackendFeatureFactory(
value: unknown,
): value is BackendFeatureFactory {
): value is () => BackendFeature {
return (
!!value &&
typeof value === 'function' &&
(value as BackendFeatureFactory).$$type ===
'@backstage/BackendFeatureFactory'
(value as any).$$type === '@backstage/BackendFeatureFactory'
);
}