Skip to content

Commit 3d5c5e4

Browse files
Fix types
1 parent 0d1ba87 commit 3d5c5e4

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

src/storages/types.ts

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import SplitIO from '../../types/splitio';
2-
import { MaybeThenable, ISplit, IRBSegment, IMySegmentsResponse, IMembershipsResponse, ISegmentChangesResponse, ISplitChangesResponse } from '../dtos/types';
2+
import { MaybeThenable, ISplit, IRBSegment, IMySegmentsResponse } from '../dtos/types';
33
import { MySegmentsData } from '../sync/polling/types';
44
import { EventDataType, HttpErrors, HttpLatencies, ImpressionDataType, LastSync, Method, MethodExceptions, MethodLatencies, MultiMethodExceptions, MultiMethodLatencies, MultiConfigs, OperationType, StoredEventWithMetadata, StoredImpressionWithMetadata, StreamingEvent, UniqueKeysPayloadCs, UniqueKeysPayloadSs, TelemetryUsageStatsPayload, UpdatesFromSSEEnum } from '../sync/submitters/types';
55
import { ISettings } from '../types';
@@ -497,6 +497,8 @@ export interface IStorageAsync extends IStorageBase<
497497

498498
/** StorageFactory */
499499

500+
export type DataLoader = (storage: IStorageSync, matchingKey: string) => void
501+
500502
export interface IStorageFactoryParams {
501503
settings: ISettings,
502504
/**
@@ -520,21 +522,3 @@ export type IStorageAsyncFactory = SplitIO.StorageAsyncFactory & {
520522
readonly type: SplitIO.StorageType,
521523
(params: IStorageFactoryParams): IStorageAsync
522524
}
523-
524-
export type RolloutPlan = {
525-
/**
526-
* Feature flags and rule-based segments.
527-
*/
528-
splitChanges: ISplitChangesResponse;
529-
/**
530-
* Optional map of matching keys to their memberships.
531-
*/
532-
memberships?: {
533-
[matchingKey: string]: IMembershipsResponse;
534-
};
535-
/**
536-
* Optional list of standard segments.
537-
* This property is ignored if `memberships` is provided.
538-
*/
539-
segmentChanges?: ISegmentChangesResponse[];
540-
};

0 commit comments

Comments
 (0)