Skip to content

Commit

Permalink
fix(🐛): Fix typing for contains() (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Jul 22, 2019
1 parent 2b2e659 commit 2591e59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"lint": "eslint --ext .ts,.tsx src",
"tsc": "tsc --noEmit",
"test": "npm run lint && npm run",
"test": "yarn lint && yarn tsc",
"prepare": "bob build",
"semantic-release": "semantic-release"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const get = (
) as Animated.Node<number>;

export const contains = (
values: Animated.Node<number>[],
value: Animated.Node<number>
values: Animated.Adaptable<number>[],
value: Animated.Adaptable<number>
): Animated.Node<0 | 1> =>
values.reduce(
(acc, v) => or(acc, eq(value, v)),
Expand Down

0 comments on commit 2591e59

Please sign in to comment.