mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix rox-node fetch() return type (#40153)
This commit is contained in:
parent
1ef0f7d3b2
commit
625d9ea5ee
2
types/rox-node/index.d.ts
vendored
2
types/rox-node/index.d.ts
vendored
@ -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
|
||||
|
||||
@ -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');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user