mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-23 13:46:45 +02:00
feat: add some new types
This commit is contained in:
parent
6efd78c403
commit
f453a97b43
@ -1,4 +1,15 @@
|
||||
type NewStrategy = {
|
||||
projectId: string;
|
||||
featureName: string;
|
||||
strategyName: string;
|
||||
environment: string;
|
||||
};
|
||||
|
||||
type ExistingStrategy = NewStrategy & { id?: string };
|
||||
|
||||
type ChangeRequestStrategy = NewStrategy | ExistingStrategy;
|
||||
|
||||
export interface IChangeRequestSegmentUsageReadModel {
|
||||
isSegmentUsedInActiveChangeRequests(segmentId: number): Promise<boolean>;
|
||||
getSegmentsUsedInActiveChangeRequests(): Promise<{}[]>;
|
||||
getSegmentsUsedInActiveChangeRequests(): Promise<ChangeRequestStrategy[]>;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user