types(transition): props should be declared by generic (#514)

This commit is contained in:
hujiulong 2019-12-03 23:12:54 +08:00 committed by Evan You
parent dec444ef04
commit 7522d4d61a

View File

@ -32,8 +32,8 @@ export interface TransitionProps extends BaseTransitionProps {
// DOM Transition is a higher-order-component based on the platform-agnostic
// base Transition component, with DOM-specific logic.
export const Transition: FunctionalComponent = (
props: TransitionProps,
export const Transition: FunctionalComponent<TransitionProps> = (
props,
{ slots }
) => h(BaseTransition, resolveTransitionProps(props), slots)