Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit 983fac3

Browse files
author
Brandon Dail
committed
Add missing flow annotations
1 parent 63009b8 commit 983fac3

34 files changed

+62
-27
lines changed

src/components/bouceOut.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// @flow
12
import { scale3d } from '../utils';
3+
import type { Animation } from '../types';
24

3-
const bounceOut = {
5+
const bounceOut: Animation = {
46
'20%': {
57
transform: scale3d(0.9, 0.9, 0.9),
68
},

src/components/bounceIn.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
import { cubicBezier, scale3d } from '../utils.js';
23
import type { Keyframe, Animation } from '../types';
34

@@ -10,7 +11,7 @@ const timing: Keyframe = {
1011
),
1112
}
1213

13-
const bounceIn = {
14+
const bounceIn: Animation = {
1415
from: timing,
1516
'0%': {
1617
opacity: 0,

src/components/bounceInDown.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
import { cubicBezier, translate3d } from '../utils.js';
23
import type { Keyframe, Animation } from '../types';
34

@@ -10,7 +11,7 @@ const timing: Keyframe = {
1011
),
1112
}
1213

13-
const bounceInDown = {
14+
const bounceInDown: Animation = {
1415
from: timing,
1516
'0%': {
1617
opacity: 0,

src/components/bounceInLeft.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
import { cubicBezier, translate3d } from '../utils.js';
23
import type { Keyframe, Animation } from '../types';
34

@@ -10,7 +11,7 @@ const timing: Keyframe = {
1011
),
1112
}
1213

13-
const bounceInLeft = {
14+
const bounceInLeft: Animation = {
1415
from: timing,
1516
'0%': {
1617
opacity: 0,

src/components/bounceInRight.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
import { cubicBezier, translate3d } from '../utils.js';
23
import type { Keyframe, Animation } from '../types';
34

@@ -10,7 +11,7 @@ const timing: Keyframe = {
1011
),
1112
}
1213

13-
const bounceInRight = {
14+
const bounceInRight: Animation = {
1415
from: timing,
1516
'0%': {
1617
opacity: 0,

src/components/bounceInUp.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
import { cubicBezier, translate3d } from '../utils.js';
23
import type { Keyframe, Animation } from '../types';
34

@@ -10,7 +11,7 @@ const timing: Keyframe = {
1011
),
1112
}
1213

13-
const bounceInUp = {
14+
const bounceInUp: Animation = {
1415
from: timing,
1516
'0%': {
1617
opacity: 0,

src/components/bounceOutDown.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// @flow
12
import { translate3d } from '../utils';
3+
import type { Animation } from '../types';
24

3-
const bounceOutDown = {
5+
const bounceOutDown: Animation = {
46
'20%': {
57
transform: translate3d(0, '10px', 0),
68
},

src/components/bounceOutLeft.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// @flow
12
import { translate3d } from '../utils';
3+
import type { Animation } from '../types';
24

3-
const bounceOutLeft = {
5+
const bounceOutLeft: Animation = {
46
'20%': {
57
opacity: 1,
68
transform: translate3d('20px', 0, 0),

src/components/bounceOutRight.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
// @flow
12
import { translate3d } from '../utils';
2-
import type { Animation } from '../utils';
3+
import type { Animation } from '../types';
34

45
const bounceOutRight: Animation = {
56
'20%': {

src/components/flash.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
import type { Keyframe, Animation } from '../types';
23

34
const visible: Keyframe = {

0 commit comments

Comments
 (0)