types(transition): props should be declared by generic (#514)
This commit is contained in:
parent
dec444ef04
commit
7522d4d61a
@ -32,8 +32,8 @@ export interface TransitionProps extends BaseTransitionProps {
|
|||||||
|
|
||||||
// DOM Transition is a higher-order-component based on the platform-agnostic
|
// DOM Transition is a higher-order-component based on the platform-agnostic
|
||||||
// base Transition component, with DOM-specific logic.
|
// base Transition component, with DOM-specific logic.
|
||||||
export const Transition: FunctionalComponent = (
|
export const Transition: FunctionalComponent<TransitionProps> = (
|
||||||
props: TransitionProps,
|
props,
|
||||||
{ slots }
|
{ slots }
|
||||||
) => h(BaseTransition, resolveTransitionProps(props), slots)
|
) => h(BaseTransition, resolveTransitionProps(props), slots)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user