فهرست منبع

refactor(core): Fix typing that was causing test to fail

Michael Bromley 3 سال پیش
والد
کامیت
b30d39a1be
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/core/src/common/self-refreshing-cache.ts

+ 1 - 1
packages/core/src/common/self-refreshing-cache.ts

@@ -12,7 +12,7 @@ export interface SelfRefreshingCache<V, RefreshArgs extends any[] = []> {
      * The current value of the cache. If the value is stale, the data will be refreshed and then
      * the fresh value will be returned.
      */
-    value(...refreshArgs: RefreshArgs | [undefined]): Promise<V>;
+    value(...refreshArgs: RefreshArgs | [undefined] | []): Promise<V>;
 
     /**
      * @description