File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1515 */
1616import { NODE_CLIENT_ENGINE } from './utils/enums' ;
1717import { Client , Config } from './shared_types' ;
18- import { getOptimizelyInstance } from './client_factory' ;
18+ import { getOptimizelyInstance , OptimizelyFactoryConfig } from './client_factory' ;
1919import { EventDispatcher } from './event_processor/event_dispatcher/event_dispatcher' ;
2020import { NodeRequestHandler } from './utils/http_request_handler/request_handler.node' ;
2121
@@ -26,9 +26,9 @@ import { NodeRequestHandler } from './utils/http_request_handler/request_handler
2626 * null on error
2727 */
2828export const createInstance = function ( config : Config ) : Client {
29- const nodeConfig = {
29+ const nodeConfig : OptimizelyFactoryConfig = {
3030 ...config ,
31- clientEnging : config . clientEngine || NODE_CLIENT_ENGINE ,
31+ clientEngine : config . clientEngine || NODE_CLIENT_ENGINE ,
3232 requestHandler : new NodeRequestHandler ( ) ,
3333 }
3434
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import 'fast-text-encoding';
1717import 'react-native-get-random-values' ;
1818
1919import { Client , Config } from './shared_types' ;
20- import { getOptimizelyInstance } from './client_factory' ;
20+ import { getOptimizelyInstance , OptimizelyFactoryConfig } from './client_factory' ;
2121import { REACT_NATIVE_JS_CLIENT_ENGINE } from './utils/enums' ;
2222import { EventDispatcher } from './event_processor/event_dispatcher/event_dispatcher' ;
2323import { BrowserRequestHandler } from './utils/http_request_handler/request_handler.browser' ;
@@ -29,7 +29,7 @@ import { BrowserRequestHandler } from './utils/http_request_handler/request_hand
2929 * null on error
3030 */
3131export const createInstance = function ( config : Config ) : Client {
32- const rnConfig = {
32+ const rnConfig : OptimizelyFactoryConfig = {
3333 ...config ,
3434 clientEngine : config . clientEngine || REACT_NATIVE_JS_CLIENT_ENGINE ,
3535 requestHandler : new BrowserRequestHandler ( ) ,
You can’t perform that action at this time.
0 commit comments