From aef4e586bfafe89a32e0e242a329d0ffce98fb9d Mon Sep 17 00:00:00 2001 From: Ulad Kasach Date: Fri, 25 Nov 2022 18:52:25 -0500 Subject: [PATCH] fix(types): fix stragler type def --- src/RemoteStateCacheContext.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/RemoteStateCacheContext.ts b/src/RemoteStateCacheContext.ts index 4006800..91ccab8 100644 --- a/src/RemoteStateCacheContext.ts +++ b/src/RemoteStateCacheContext.ts @@ -1,4 +1,5 @@ import { LogicWithExtendableCaching } from 'with-simple-caching'; +import { RemoteStateCache } from '.'; import { WithRemoteStateQueryCachingOptions } from './RemoteStateQueryCachingOptions'; /** @@ -9,7 +10,7 @@ import { WithRemoteStateQueryCachingOptions } from './RemoteStateQueryCachingOpt * - the query itself, wrapped with extended caching, so that we can execute, invalidate, and update it * - options that the query was provisioned with */ -export interface RemoteStateCacheContextQueryRegistration any, CV extends any> { +export interface RemoteStateCacheContextQueryRegistration any, C extends RemoteStateCache> { /** * the name of the query */ @@ -18,7 +19,7 @@ export interface RemoteStateCacheContextQueryRegistration; + query: LogicWithExtendableCaching; /** * the remote-state caching options this query was registered with