Update packages/runtime-core/src/components/BaseTransition.ts

Co-Authored-By: Carlos Rodrigues <david-181@hotmail.com>
This commit is contained in:
underfin 2020-04-23 06:53:46 +08:00 committed by GitHub
parent 9bddf3820e
commit 63c8444d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ export interface BaseTransitionProps<HostElement = RendererElement> {
onLeaveCancelled?: (el: HostElement) => void // only fired in persisted mode
}
export interface TransitionHooks<HostElement = RendererElement> {
export interface TransitionHooks<HostElement extends RendererElement = RendererElement> {
persisted: boolean
beforeEnter(el: HostElement): void
enter(el: HostElement): void