2.0.4 • Published 6 months ago

@types/react-motion-loop v2.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-motion-loop

Summary

This package contains type definitions for react-motion-loop (https://github.com/nkbt/react-motion-loop).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-motion-loop.

index.d.ts

// 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) | undefined;
}
export class ReactMotionLoop extends Component<ReactMotionLoopProps> {}

export as namespace ReactMotionLoop;

Additional Details

Credits

These definitions were written by Jeremy Allard.