mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* added react-fade-in type definitions * added version in * added type definitions for react-hook-mousetrap * resolved prefer-declare-function error
31 lines
807 B
TypeScript
31 lines
807 B
TypeScript
// Type definitions for react-fade-in 0.1
|
|
// Project: github.com/gkaemmer/react-fade-in
|
|
// Definitions by: Barry Michael Doyle <https://github.com/barrymichaeldoyle>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.1
|
|
|
|
import { ComponentClass, ReactNode } from 'react';
|
|
|
|
/**
|
|
* Props for a FadeIn component.
|
|
*/
|
|
export interface FadeInProps {
|
|
children?: ReactNode;
|
|
className?: string;
|
|
/**
|
|
* Default: 50. Delay between each child's animation in milliseconds.
|
|
*/
|
|
delay?: number;
|
|
/**
|
|
* Default: 400. Duration of each child's animation in milliseconds.
|
|
*/
|
|
transitionDuration?: number;
|
|
}
|
|
|
|
/**
|
|
* Visually animates content on render with FadeIn.js
|
|
*/
|
|
declare const FadeIn: ComponentClass<FadeInProps>;
|
|
|
|
export default FadeIn;
|