DefinitelyTyped/types/react-motion-loop/index.d.ts
2019-02-02 21:50:25 -05:00

18 lines
652 B
TypeScript

// Type definitions for react-motion-loop 2.0
// Project: https://github.com/nkbt/react-motion-loop
// Definitions by: Jeremy Allard <https://github.com/j-em>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1
import { Component, ReactElement } from "react";
import { MotionProps, PlainStyle, Style } from "react-motion";
interface ReactMotionLoopProps extends Partial<MotionProps> {
styleFrom: Style;
styleTo: Style;
children?: (interpolatedStyle: PlainStyle) => ReactElement<any>;
}
export class ReactMotionLoop extends Component<ReactMotionLoopProps> {}
export as namespace ReactMotionLoop;