Skip to content

Commit

Permalink
fix(typescript): fixed to string[] instead of string on type param
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Brandon Farrell committed Jun 10, 2021
1 parent 58cf7be commit 1ec4827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/use-redux-effect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ import { ReduxEffect } from './redux-effect';
* @param type
* @param deps
*/
export declare function useReduxEffect(effect: ReduxEffect, type: string, deps?: DependencyList): void;
export declare function useReduxEffect(effect: ReduxEffect, type: string[], deps?: DependencyList): void;
2 changes: 1 addition & 1 deletion src/use-redux-effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { ReduxEffect } from './redux-effect'
*/
export function useReduxEffect(
effect: ReduxEffect,
type: string,
type: string[],
deps: DependencyList = [],
): void {
const currentValue = useRef(null)
Expand Down

0 comments on commit 1ec4827

Please sign in to comment.