Skip to content

Commit

Permalink
πŸ’„ Refine TS type (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored and osdnk committed Jun 22, 2019
1 parent a1caabb commit 950c46b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react-native-reanimated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ declare module 'react-native-reanimated' {
right: Adaptable<number>
) => AnimatedNode<T>;
type UnaryOperator = (value: Adaptable<number>) => AnimatedNode<number>;
type MultiOperator = (
type MultiOperator<T = number> = (
a: Adaptable<number>,
b: Adaptable<number>,
...others: Adaptable<number>[]
) => AnimatedNode<number>;
) => AnimatedNode<T>;

export interface DecayState {
finished: AnimatedValue<number>;
Expand Down

0 comments on commit 950c46b

Please sign in to comment.