mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
fixing lint error, passing {} instead of empty interface
This commit is contained in:
@@ -33,8 +33,6 @@ export interface CSSTransitionProps extends TransitionProps {
|
||||
classNames: string | CSSTransitionClassNames;
|
||||
}
|
||||
|
||||
export interface CSSTransitionState {}
|
||||
|
||||
declare class CSSTransition extends Component<CSSTransitionProps, CSSTransitionState> {}
|
||||
declare class CSSTransition extends Component<CSSTransitionProps, {}> {}
|
||||
|
||||
export default CSSTransition;
|
||||
|
||||
4
types/react-transition-group/Transition.d.ts
vendored
4
types/react-transition-group/Transition.d.ts
vendored
@@ -25,8 +25,6 @@ export interface TransitionProps extends TransitionActions {
|
||||
[prop: string]: any;
|
||||
}
|
||||
|
||||
export interface TransitionState {}
|
||||
|
||||
/**
|
||||
* The Transition component lets you describe a transition from one component
|
||||
* state to another _over time_ with a simple declarative API. Most commonly
|
||||
@@ -68,6 +66,6 @@ export interface TransitionState {}
|
||||
* ```
|
||||
*
|
||||
*/
|
||||
declare class Transition extends Component<TransitionProps, TransitionState> {}
|
||||
declare class Transition extends Component<TransitionProps, {}> {}
|
||||
|
||||
export default Transition;
|
||||
|
||||
@@ -14,8 +14,6 @@ export type TransitionGroupProps<T extends keyof JSX.IntrinsicElements = "div",
|
||||
children?: ReactElement<TransitionProps> | Array<ReactElement<TransitionProps>>;
|
||||
};
|
||||
|
||||
export interface TransitionGroupState {}
|
||||
|
||||
/**
|
||||
* The `<TransitionGroup>` component manages a set of `<Transition>` components
|
||||
* in a list. Like with the `<Transition>` component, `<TransitionGroup>`, is a
|
||||
@@ -73,6 +71,6 @@ export interface TransitionGroupState {}
|
||||
* components. This means you can mix and match animations across different
|
||||
* list items.
|
||||
*/
|
||||
declare class TransitionGroup extends Component<TransitionGroupProps, TransitionGroupState> {}
|
||||
declare class TransitionGroup extends Component<TransitionGroupProps, {}> {}
|
||||
|
||||
export default TransitionGroup;
|
||||
|
||||
Reference in New Issue
Block a user