1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00
unleash.unleash/src/lib/features/dependent-features/fake-dependent-features-read-model.ts
2023-10-06 13:39:16 +02:00

27 lines
676 B
TypeScript

import { IDependentFeaturesReadModel } from './dependent-features-read-model-type';
import { IDependency } from '../../types';
export class FakeDependentFeaturesReadModel
implements IDependentFeaturesReadModel
{
getChildren(): Promise<string[]> {
return Promise.resolve([]);
}
getParents(): Promise<IDependency[]> {
return Promise.resolve([]);
}
getParentOptions(): Promise<string[]> {
return Promise.resolve([]);
}
hasDependencies(): Promise<boolean> {
return Promise.resolve(false);
}
getOrphanParents(parentsAndChildren: string[]): Promise<string[]> {
return Promise.resolve([]);
}
}