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
|
||||
// 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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user