Skip to content

Commit cc4a5a1

Browse files
Update ts test
1 parent aa5651d commit cc4a5a1

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

ts-tests/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ SDK.settings.features = { 'split_x': 'on' }; // Browser
195195
// Client and Manager
196196
client = SDK.client();
197197
manager = SDK.manager();
198+
manager = BrowserSDK.manager();
198199
// Today async clients are only possible on Node. Shared client creation not available here.
199200
asyncClient = AsyncSDK.client();
200201
asyncManager = AsyncSDK.manager();

types/splitio.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,10 @@ declare namespace SplitIO {
11201120
*/
11211121
prefix?: string
11221122
},
1123+
/**
1124+
* @TODO Add description. Should be inside storage?
1125+
*/
1126+
preloadedData?: SplitIO.PreloadedData,
11231127
/**
11241128
* List of URLs that the SDK will use as base for it's synchronization functionalities, applicable only when running as standalone.
11251129
* Do not change these settings unless you're working an advanced use case, like connecting to the Split proxy.
@@ -1394,7 +1398,7 @@ declare namespace SplitIO {
13941398
/**
13951399
* @TODO add description
13961400
*/
1397-
getState(): PreloadedData,
1401+
getState(keys?: SplitKey[]): PreloadedData,
13981402
}
13991403
/**
14001404
* This represents the interface for the SDK instance with synchronous storage.
@@ -1416,6 +1420,12 @@ declare namespace SplitIO {
14161420
* @returns {IBrowserClient} The client instance.
14171421
*/
14181422
client(key: SplitKey, trafficType?: string): IBrowserClient
1423+
/**
1424+
* Returns a manager instance of the SDK to explore available information.
1425+
* @function manager
1426+
* @returns {IManager} The manager instance.
1427+
*/
1428+
manager(): IManager,
14191429
/**
14201430
* User consent API.
14211431
* @property UserConsent

0 commit comments

Comments
 (0)