UNPKG

745 BTypeScriptView Raw
1import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2import * as React from 'react';
3export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5export interface EasingProps {
6 easing: string | {
7 enter?: string;
8 exit?: string;
9 };
10}
11export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13}