Skip to content

Commit

Permalink
fix: Use imported type from Mitt
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Oct 25, 2023
1 parent e6d22c0 commit 6e10925
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next-usequerystate/src/sync.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Emitter as MittEmitter } from 'mitt'
import Mitt from 'mitt'

export const SYNC_EVENT_KEY = '__nextUseQueryState__SYNC__'
Expand All @@ -16,7 +17,7 @@ type EventMap = {
[key: string]: any
}

type Emitter = ReturnType<typeof Mitt<EventMap>>
type Emitter = MittEmitter<EventMap>

declare global {
interface History {
Expand Down

0 comments on commit 6e10925

Please sign in to comment.