Fix rox-node fetch() return type (#40153)

This commit is contained in:
Guillaume
2019-11-05 08:41:59 -08:00
committed by Nathan Shively-Sanders
parent 1ef0f7d3b2
commit 625d9ea5ee
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ export function setDynamicCustomPropertyRule(
*
* https://support.rollout.io/docs/nodejs-api#section-fetch
*/
export function fetch(): Promise<unknown>;
export function fetch(): void;
/**
* Creates a new Flag
+2
View File
@@ -22,6 +22,8 @@ Rox.setup('ROLLOUT_IO_KEY', {
configurationFetchedHandler,
}).then(linkTargetGroupAttributes);
Rox.fetch();
Rox.dynamicApi.isEnabled('system.repotAnalytics', false);
Rox.dynamicApi.value('ui.textColor', 'red');