Skip to content

Commit

Permalink
Fix incorrect type of __.$instance in Cache API
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Feb 18, 2024
1 parent d1231f6 commit f14f944
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-bees-compete.md
@@ -0,0 +1,5 @@
---
'@farfetched/core': patch
---

Fix incorrect type of `__.$instance` in Cache API
4 changes: 2 additions & 2 deletions packages/core/src/cache/adapters/type.ts
@@ -1,4 +1,4 @@
import type { Effect, Event, EventCallable, Store } from 'effector';
import type { Effect, EventCallable, StoreWritable } from 'effector';

import { Time } from '../../libs/date-nfs';

Expand All @@ -22,5 +22,5 @@ export interface CacheAdapterOptions {

export interface CacheAdapter extends CacheAdapterInstance {
// To support Fork API adapter should be used only thru $instance
__: { $instance: Store<CacheAdapterInstance> };
__: { $instance: StoreWritable<CacheAdapterInstance> };
}

0 comments on commit f14f944

Please sign in to comment.