Skip to content

Commit 757ce1d

Browse files
[added] SpringArgs type
Summary: Closes #134 Reviewers: featherless, O2 Material Motion, #material_motion, O3 Material JavaScript platform reviewers Reviewed By: featherless, O2 Material Motion, #material_motion Tags: #material_motion Differential Revision: http://codereview.cc/D2452
1 parent 32eb483 commit 757ce1d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/streams/src/types.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,12 @@ export interface MotionElement {
5656
readonly scrollPosition: ScopedReadable<Point2D> & ScopedWritable<Point2D>;
5757
getEvent$(type: string): MotionObservable<Event>;
5858
}
59+
60+
export type SpringArgs<T> = {
61+
destination: ScopedReadable<T>,
62+
initialValue: ScopedReadable<T>,
63+
initialVelocity: ScopedReadable<T>,
64+
threshold: ScopedReadable<T>,
65+
friction: ScopedReadable<number>,
66+
tension: ScopedReadable<number>,
67+
};

0 commit comments

Comments
 (0)