]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types(transition): props should be declared by generic (#514)
authorhujiulong <me@hujiulong.com>
Tue, 3 Dec 2019 15:12:54 +0000 (23:12 +0800)
committerEvan You <yyx990803@gmail.com>
Tue, 3 Dec 2019 15:12:54 +0000 (10:12 -0500)
packages/runtime-dom/src/components/Transition.ts

index e5353004ad2061e3b60e7c7646f3ad5906b26e07..13fd0f3f5334f6b8c06051f49bf9a3b84ab8e0ba 100644 (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)