Skip to content

Commit ca9971d

Browse files
committed
chore: Remove notification types & exports
1 parent 9c93ff2 commit ca9971d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/nuqs/src/sync.ts

-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
import Mitt from 'mitt'
22

33
export const SYNC_EVENT_KEY = Symbol('__nuqs__SYNC__')
4-
const NOTIFY_EVENT_KEY = Symbol('__nuqs__NOTIFY__')
54

6-
export type QueryUpdateSource = 'internal' | 'external'
7-
export type QueryUpdateNotificationArgs = {
8-
search: URLSearchParams
9-
source: QueryUpdateSource
10-
}
115
export type CrossHookSyncPayload = {
126
state: any
137
query: string | null
148
}
159

1610
type EventMap = {
1711
[SYNC_EVENT_KEY]: URLSearchParams
18-
[NOTIFY_EVENT_KEY]: QueryUpdateNotificationArgs
1912
[key: string]: CrossHookSyncPayload
2013
}
2114

0 commit comments

Comments
 (0)