@@ -19,7 +19,6 @@ module Animation = {
1919module type Value = {
2020 type t;
2121 type jsValue;
22- type rawJsType;
2322};
2423
2524type calculated;
@@ -35,7 +34,7 @@ module ValueAnimations = (Val: Value) => {
3534 [@bs.obj]
3635 external config:
3736 (
38- ~velocity: Val.rawJsType ,
37+ ~velocity: Val.jsValue ,
3938 ~deceleration: float=?,
4039 ~isInteraction: bool=?,
4140 ~useNativeDriver: bool=?,
@@ -52,7 +51,7 @@ module ValueAnimations = (Val: Value) => {
5251
5352 module Spring = {
5453 type toValue;
55- external fromRawValue: Val.rawJsType => toValue = "%identity";
54+ external fromRawValue: Val.jsValue => toValue = "%identity";
5655 external fromAnimatedValue: Val.t => toValue = "%identity";
5756
5857 type config;
@@ -64,7 +63,7 @@ module ValueAnimations = (Val: Value) => {
6463 ~restDisplacementThreshold: float=?,
6564 ~overshootClamping: bool=?,
6665 ~restSpeedThreshold: float=?,
67- ~velocity: Val.rawJsType =?,
66+ ~velocity: Val.jsValue =?,
6867 ~bounciness: float=?,
6968 ~speed: float=?,
7069 ~tension: float=?,
@@ -89,7 +88,7 @@ module ValueAnimations = (Val: Value) => {
8988 module Timing = {
9089 type toValue;
9190
92- external fromRawValue: Val.rawJsType => toValue = "%identity";
91+ external fromRawValue: Val.jsValue => toValue = "%identity";
9392 external fromAnimatedValue: Val.t => toValue = "%identity";
9493
9594 type config;
@@ -157,12 +156,11 @@ module ValueOperations = {
157156module ValueMethods = (Val: Value) => {
158157 type t = Val.t;
159158 type jsValue = Val.jsValue;
160- type rawJsType = Val.rawJsType;
161159
162160 type callback = jsValue => unit;
163161
164- [@bs.send] external setValue: (t, rawJsType ) => unit = "";
165- [@bs.send] external setOffset: (t, rawJsType ) => unit = "";
162+ [@bs.send] external setValue: (t, jsValue ) => unit = "";
163+ [@bs.send] external setOffset: (t, jsValue ) => unit = "";
166164 [@bs.send] external flattenOffset: t => unit = "";
167165 [@bs.send] external extractOffset: t => unit = "";
168166 [@bs.send] external addListener: (t, callback) => string = "";
@@ -181,8 +179,7 @@ module ValueMethods = (Val: Value) => {
181179module Value = {
182180 include ValueMethods({
183181 type t = value(regular);
184- type jsValue = {. "value": float};
185- type rawJsType = float;
182+ type jsValue = float;
186183 });
187184
188185 [@bs.new] [@bs.scope "Animated"] [@bs.module "react-native"]
@@ -203,7 +200,6 @@ module ValueXY = {
203200 "x": float,
204201 "y": float,
205202 };
206- type rawJsType = jsValue;
207203 });
208204
209205 type translateTransform = {
@@ -296,4 +292,4 @@ module View = {
296292 let make = createAnimatedComponent(View.make);
297293};
298294
299- ```
295+ ```
0 commit comments