Skip to content

Commit

Permalink
fix: Cannot find module 'channel'
Browse files Browse the repository at this point in the history
  • Loading branch information
ninesunsabiu committed May 25, 2021
1 parent bac3b34 commit af2e215
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/channel.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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<P extends ActionPattern>(
cache: CacheFn,
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@
"noUncheckedIndexedAccess": true,
"allowSyntheticDefaultImports": true,
"importsNotUsedAsValues": "error",
"baseUrl": "./src",
"paths": {
"@/*": [
"./*"
]
}
}
}

0 comments on commit af2e215

Please sign in to comment.