Skip to content

Commit

Permalink
fix(typescript): fixed to string[] | string instead of string[] on ty…
Browse files Browse the repository at this point in the history
…pe param
  • Loading branch information
Luke Brandon Farrell committed Jun 10, 2021
1 parent 1ec4827 commit 8b9a7f7
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 | 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 | string[],
deps: DependencyList = [],
): void {
const currentValue = useRef(null)
Expand Down

0 comments on commit 8b9a7f7

Please sign in to comment.