1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-10 01:19:53 +01:00
unleash.unleash/src/lib/features/feature-lifecycle/fake-feature-lifecycle-read-model.ts
Gastón Fournier abe160eb7d
feat: Unleash v7 ESM migration (#9877)
We're migrating to ESM, which will allow us to import the latest
versions of our dependencies.

Co-Authored-By: Christopher Kolstad <chriswk@getunleash.io>
2025-05-14 09:47:12 +02:00

29 lines
793 B
TypeScript

import type {
IFeatureLifecycleReadModel,
StageCount,
StageCountByProject,
} from './feature-lifecycle-read-model-type.js';
import type {
IFeatureLifecycleStage,
IProjectLifecycleStageDuration,
} from '../../types/index.js';
export class FakeFeatureLifecycleReadModel
implements IFeatureLifecycleReadModel
{
getAllWithStageDuration(): Promise<IProjectLifecycleStageDuration[]> {
return Promise.resolve([]);
}
getStageCount(): Promise<StageCount[]> {
return Promise.resolve([]);
}
getStageCountByProject(): Promise<StageCountByProject[]> {
return Promise.resolve([]);
}
findCurrentStage(
feature: string,
): Promise<IFeatureLifecycleStage | undefined> {
return Promise.resolve(undefined);
}
}