-
Notifications
You must be signed in to change notification settings - Fork 12
/
LDClientContext.ts
52 lines (44 loc) · 1.24 KB
/
LDClientContext.ts
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { LDLogger } from '../logging';
import { Platform } from '../platform';
/**
* Specifies the base service URIs used by SDK components.
*/
export interface LDServiceEndpoints {
// Properties are for internal SDK components.
}
/**
* The most basic properties of the SDK client that are available to all SDK component factories.
*/
export interface LDBasicConfiguration {
/**
* The configured SDK key.
*/
sdkKey: string;
/**
* Defines the base service URIs used by SDK components.
*/
serviceEndpoints: LDServiceEndpoints;
/**
* True if the SDK was configured to be completely offline.
*/
offline?: boolean;
logger?: LDLogger;
tags?: { value?: string };
}
/**
* Factory methods receive this class as a parameter.
*
* Its public properties provide information about the SDK configuration and environment. The SDK
* may also include non-public properties that are relevant only when creating one of the built-in
* component types and are not accessible to custom components.
*/
export interface LDClientContext {
/**
* The SDK's basic global properties.
*/
basicConfiguration: LDBasicConfiguration;
/**
* Interfaces providing platform specific information and functionality.
*/
platform: Platform;
}