Skip to content

Commit 27608a2

Browse files
fixes
1 parent 68f7349 commit 27608a2

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/__tests__/browserSuites/ready-promise.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ export default function readyPromiseAssertions(fetchMock, assert) {
562562
t.end();
563563
});
564564
});
565-
}, 0);
565+
}, 10);
566566
});
567567
}, fromSecondsToMillis(0.2));
568568

src/full/splitFactory.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { getFetch } from '../platform/getFetchFull';
66
import { getEventSource } from '../platform/getEventSource';
77
import { EventEmitter } from '@splitsoftware/splitio-commons/src/utils/MinEvents';
88
import { now } from '@splitsoftware/splitio-commons/src/utils/timeTracker/now/browser';
9-
import { IBrowserSettings } from '../../types/splitio';
109

1110
const platform = { getFetch, getEventSource, EventEmitter, now };
1211

@@ -19,7 +18,7 @@ const platform = { getFetch, getEventSource, EventEmitter, now };
1918
* caution since, unlike `config`, this param is not validated neither considered part of the public API.
2019
* @throws Will throw an error if the provided config is invalid.
2120
*/
22-
export function SplitFactory(config: IBrowserSettings, __updateModules?: (modules: ISdkFactoryParams) => void) {
21+
export function SplitFactory(config: any, __updateModules?: (modules: ISdkFactoryParams) => void) {
2322
const settings = settingsFactory(config);
2423
const modules = getModules(settings, platform);
2524
if (__updateModules) __updateModules(modules);

src/splitFactory.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { getFetch } from './platform/getFetchSlim';
66
import { getEventSource } from './platform/getEventSource';
77
import { EventEmitter } from '@splitsoftware/splitio-commons/src/utils/MinEvents';
88
import { now } from '@splitsoftware/splitio-commons/src/utils/timeTracker/now/browser';
9-
import { IBrowserSettings } from '../types/splitio';
109

1110
const platform = { getFetch, getEventSource, EventEmitter, now };
1211

@@ -19,7 +18,7 @@ const platform = { getFetch, getEventSource, EventEmitter, now };
1918
* caution since, unlike `config`, this param is not validated neither considered part of the public API.
2019
* @throws Will throw an error if the provided config is invalid.
2120
*/
22-
export function SplitFactory(config: IBrowserSettings, __updateModules?: (modules: ISdkFactoryParams) => void) {
21+
export function SplitFactory(config: any, __updateModules?: (modules: ISdkFactoryParams) => void) {
2322
const settings = settingsFactory(config);
2423
const modules = getModules(settings, platform);
2524
if (__updateModules) __updateModules(modules);

0 commit comments

Comments
 (0)