Skip to content

Commit

Permalink
fix(🐛): Fix type signature of createValue() (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Apr 11, 2020
1 parent 1d80b33 commit 9549c69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ jobs:
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: yarn workspace react-native-redash lint
- run: yarn workspace react-native-redash tsc
- run: yarn workspace react-native-redash test
- run: yarn ci

- deploy:
name: NPM Deployment
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lint": "yarn workspace react-native-redash lint",
"tsc": "yarn workspace react-native-redash tsc",
"test": "yarn workspace react-native-redash test",
"ci": "yarn run lint && yarn run tsc && yarn test",
"build": "yarn workspace react-native-redash prepare",
"serve:docs": "yarn workspace docs dev",
"build:docs": "yarn workspace docs build"
Expand Down
5 changes: 1 addition & 4 deletions packages/core/src/Vectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ export interface Vector<
y: T;
}

const create = (
x: Animated.Adaptable<number>,
y?: Animated.Adaptable<number>
) => ({
const create = <T extends Animated.Adaptable<number>>(x: T, y?: T) => ({
x,
y: y || x,
});
Expand Down

0 comments on commit 9549c69

Please sign in to comment.