Skip to content

Commit

Permalink
Update react-native-reanimated.d.ts (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
iyegoroff authored Feb 12, 2020
1 parent 715f432 commit dc8254b
Showing 1 changed file with 57 additions and 122 deletions.
179 changes: 57 additions & 122 deletions react-native-reanimated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,126 +414,61 @@ declare module 'react-native-reanimated' {
static Sequence: ComponentClass<{}>;
}


const {
Clock,
Value,
Node,
add,
sub,
multiply,
divide,
pow,
modulo,
sqrt,
log,
sin,
cos,
exp,
round,
lessThan,
eq,
greaterThan,
lessOrEq,
greaterOrEq,
neq,
and,
or,
defined,
not,
tan,
acos,
asin,
atan,
proc,
block,
concat,
event,
call,
debug,
clockRunning,
stopClock,
startClock,
set,
cond,
abs,
acc,
color,
diff,
diffClamp,
interpolate,
Extrapolate,
max,
min,
onChange,
floor,
ceil,
useCode,

decay,
timing,
spring,
SpringUtils
} = Animated;

export {
Clock,
Value,
Node,
add,
sub,
multiply,
divide,
pow,
modulo,
sqrt,
log,
sin,
cos,
exp,
round,
lessThan,
eq,
greaterThan,
lessOrEq,
greaterOrEq,
neq,
and,
or,
defined,
not,
tan,
acos,
asin,
atan,
proc,
block,
concat,
event,
call,
debug,
clockRunning,
stopClock,
startClock,
set,
cond,
abs,
acc,
color,
diff,
diffClamp,
interpolate,
Extrapolate,
max,
min,
onChange,
floor,
ceil,
useCode,

decay,
timing,
spring,
SpringUtils
};
export class Clock extends Animated.Clock {}
export class Value<T extends string | number | boolean> extends Animated.Value<T> {}
export class Node<T> extends Animated.Node<T> {}
export const add: typeof Animated.add
export const sub: typeof Animated.sub
export const multiply: typeof Animated.multiply
export const divide: typeof Animated.divide
export const pow: typeof Animated.pow
export const modulo: typeof Animated.modulo
export const sqrt: typeof Animated.sqrt
export const log: typeof Animated.log
export const sin: typeof Animated.sin
export const cos: typeof Animated.cos
export const exp: typeof Animated.exp
export const round: typeof Animated.round
export const lessThan: typeof Animated.lessThan
export const eq: typeof Animated.eq
export const greaterThan: typeof Animated.greaterThan
export const lessOrEq: typeof Animated.lessOrEq
export const greaterOrEq: typeof Animated.greaterOrEq
export const neq: typeof Animated.neq
export const and: typeof Animated.and
export const or: typeof Animated.or
export const defined: typeof Animated.defined
export const not: typeof Animated.not
export const tan: typeof Animated.tan
export const acos: typeof Animated.acos
export const asin: typeof Animated.asin
export const atan: typeof Animated.atan
export const proc: typeof Animated.proc
export const block: typeof Animated.block
export const concat: typeof Animated.concat
export const event: typeof Animated.event
export const call: typeof Animated.call
export const debug: typeof Animated.debug
export const clockRunning: typeof Animated.clockRunning
export const stopClock: typeof Animated.stopClock
export const startClock: typeof Animated.startClock
export const set: typeof Animated.set
export const cond: typeof Animated.cond
export const abs: typeof Animated.abs
export const acc: typeof Animated.acc
export const color: typeof Animated.color
export const diff: typeof Animated.diff
export const diffClamp: typeof Animated.diffClamp
export const interpolate: typeof Animated.interpolate
export const Extrapolate: typeof Animated.Extrapolate
export const max: typeof Animated.max
export const min: typeof Animated.min
export const onChange: typeof Animated.onChange
export const floor: typeof Animated.floor
export const ceil: typeof Animated.ceil
export const useCode: typeof Animated.useCode
export const decay: typeof Animated.decay
export const timing: typeof Animated.timing
export const spring: typeof Animated.spring
export const SpringUtils: typeof Animated.SpringUtils
}

0 comments on commit dc8254b

Please sign in to comment.