npm.io
2.0.4 • Published 2 years ago

@types/react-motion-loop

Licence
MIT
Version
2.0.4
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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.