Skip to content

Commit

Permalink
fix: use ts-ignore instead of ts-expect-error for version-specifc err…
Browse files Browse the repository at this point in the history
…ors (#2802)
  • Loading branch information
sodatea committed Feb 22, 2023
1 parent fb3fad2 commit 37ec7d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/useEventBus/index.ts
Expand Up @@ -49,7 +49,8 @@ export function useEventBus<T = unknown, P = any>(key: EventBusIdentifier<T>): U

const _off = () => off(listener)
// auto unsubscribe when scope get disposed
// @ts-expect-error vue3 and vue2 mis-align
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-ignore vue3 and vue2 mis-align
scope?.cleanups?.push(_off)
return _off
}
Expand Down

0 comments on commit 37ec7d8

Please sign in to comment.