-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtypes.ts
More file actions
31 lines (29 loc) · 1.06 KB
/
types.ts
File metadata and controls
31 lines (29 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import SplitIO from '../types/splitio';
import { ISplitFiltersValidation } from './dtos/types';
import { ILogger } from './logger/types';
import { RolloutPlan } from './storages/types';
/**
* SplitIO.ISettings interface extended with private properties for internal use
*/
export interface ISettings extends SplitIO.ISettings {
readonly sync: SplitIO.ISettings['sync'] & {
__splitFiltersValidation: ISplitFiltersValidation;
};
readonly log: ILogger;
readonly initialRolloutPlan?: RolloutPlan;
}
/**
* SplitIO.IBasicClient interface extended with private properties for internal use
*/
export interface IBasicClient extends SplitIO.IBasicClient {
/**
* Flush data
*
* @returns A promise that is resolved when the flush is completed.
*/
flush(): Promise<void>;
// Whether the client implements the client-side API, i.e, with bound key, (true), or the server-side API (false/undefined).
// Exposed for internal purposes only. Not considered part of the public API, and might be renamed eventually.
isClientSide?: boolean;
key?: SplitIO.SplitKey;
}