Skip to content

Commit

Permalink
fix(types): allow return any for Options API lifecycle hooks (#5914)
Browse files Browse the repository at this point in the history
Co-authored-by: edison <[email protected]>
  • Loading branch information
liulinboyi and edison1105 authored Nov 19, 2024
1 parent 14f6917 commit 06310e8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/runtime-core/src/componentOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,20 +416,20 @@ interface LegacyOptions<
extends?: Extends

// lifecycle
beforeCreate?(): void
created?(): void
beforeMount?(): void
mounted?(): void
beforeUpdate?(): void
updated?(): void
activated?(): void
deactivated?(): void
beforeCreate?(): any
created?(): any
beforeMount?(): any
mounted?(): any
beforeUpdate?(): any
updated?(): any
activated?(): any
deactivated?(): any
/** @deprecated use `beforeUnmount` instead */
beforeDestroy?(): void
beforeUnmount?(): void
beforeDestroy?(): any
beforeUnmount?(): any
/** @deprecated use `unmounted` instead */
destroyed?(): void
unmounted?(): void
destroyed?(): any
unmounted?(): any
renderTracked?: DebuggerHook
renderTriggered?: DebuggerHook
errorCaptured?: ErrorCapturedHook
Expand Down

0 comments on commit 06310e8

Please sign in to comment.