diff --git a/src/channel.ts b/src/channel.ts index 30886c8..4d3ae4d 100644 --- a/src/channel.ts +++ b/src/channel.ts @@ -1,7 +1,7 @@ import type { Action } from 'redux'; import type { Channel } from 'redux-saga'; -import type { CacheFn } from 'types'; import { channel } from 'redux-saga'; +import type { CacheFn } from './types'; type CacheKey = string; type ExpirationTime = number; diff --git a/src/index.ts b/src/index.ts index 66adfe1..2889938 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,9 @@ import type { ForkEffect, HelperWorkerParameters } from 'redux-saga/effects'; -import type { CacheFn } from 'types'; import type { ActionPattern, Channel, ActionMatchingPattern } from '@redux-saga/types'; import type { Action, AnyAction } from 'redux'; import { call, fork, put, takeEvery } from 'redux-saga/effects'; -import createCacheChannel from 'channel'; +import type { CacheFn } from './types'; +import createCacheChannel from './channel'; export function takeCache
( cache: CacheFn, diff --git a/tsconfig.json b/tsconfig.json index e76751b..bd6ff4b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,5 +9,11 @@ "noUncheckedIndexedAccess": true, "allowSyntheticDefaultImports": true, "importsNotUsedAsValues": "error", + "baseUrl": "./src", + "paths": { + "@/*": [ + "./*" + ] + } } } \ No newline at end of file