Skip to content

Commit

Permalink
fix(types): fix stragler type def
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed Nov 25, 2022
1 parent 73ce1aa commit aef4e58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/RemoteStateCacheContext.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { LogicWithExtendableCaching } from 'with-simple-caching';
import { RemoteStateCache } from '.';
import { WithRemoteStateQueryCachingOptions } from './RemoteStateQueryCachingOptions';

/**
Expand All @@ -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<L extends (...args: any[]) => any, CV extends any> {
export interface RemoteStateCacheContextQueryRegistration<L extends (...args: any[]) => any, C extends RemoteStateCache> {
/**
* the name of the query
*/
Expand All @@ -18,7 +19,7 @@ export interface RemoteStateCacheContextQueryRegistration<L extends (...args: an
/**
* the query with extended caching which can be used
*/
query: LogicWithExtendableCaching<L, CV>;
query: LogicWithExtendableCaching<L, C>;

/**
* the remote-state caching options this query was registered with
Expand Down

0 comments on commit aef4e58

Please sign in to comment.