Skip to content

Commit 70d47e1

Browse files
Update TS definitions
1 parent 65e5a55 commit 70d47e1

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-commons",
3-
"version": "3.0.0-rc.2",
3+
"version": "3.0.0-rc.3",
44
"description": "Split JavaScript SDK common components",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",

types/splitio.d.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ interface IServerSideSharedSettings {
213213
*/
214214
startup?: {
215215
/**
216-
* Maximum amount of time used before notify a timeout.
216+
* Time in seconds used before emitting the SDK_READY_TIMED_OUT event.
217217
*
218218
* @defaultValue `15`
219219
*/
@@ -373,7 +373,7 @@ interface IClientSideSyncSharedSettings extends IClientSideSharedSettings, ISync
373373
*/
374374
startup?: {
375375
/**
376-
* Maximum amount of time used before notify a timeout.
376+
* Time in seconds used before emitting the SDK_READY_TIMED_OUT event.
377377
*
378378
* @defaultValue `10`
379379
*/
@@ -1439,9 +1439,9 @@ declare namespace SplitIO {
14391439
*/
14401440
startup?: {
14411441
/**
1442-
* Maximum amount of time used before notify a timeout.
1442+
* Time in seconds used before emitting the SDK_READY_TIMED_OUT event.
14431443
*
1444-
* @defaultValue `5`
1444+
* @defaultValue `10`
14451445
*/
14461446
readyTimeout?: number;
14471447
/**
@@ -2341,11 +2341,12 @@ declare namespace SplitIO {
23412341
*/
23422342
logLevel?: LogLevel;
23432343
/**
2344-
* Time in seconds until SDK ready timeout is emitted.
2344+
* Time in seconds used before emitting the SDK_READY_TIMED_OUT event.
2345+
* A value of -1 disables the timeout and thus the event is never emitted.
23452346
*
23462347
* @defaultValue `10`
23472348
*/
2348-
timeout?: number;
2349+
readyTimeout?: number;
23492350
/**
23502351
* Custom endpoints to replace the default ones used by the SDK.
23512352
*/

0 commit comments

Comments
 (0)