mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
647 B
TypeScript
18 lines
647 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;
|
|
}
|
|
export class ReactMotionLoop extends Component<ReactMotionLoopProps> {}
|
|
|
|
export as namespace ReactMotionLoop;
|