Skip to content

Commit

Permalink
chore: remove unnecessary generics
Browse files Browse the repository at this point in the history
  • Loading branch information
Talent30 committed Nov 23, 2023
1 parent c233c0b commit 8eeea93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next-usequerystate/src/update-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const FLUSH_RATE_LIMIT_MS = getDefaultThrottle()

type UpdateMap = Map<string, string | null>
const updateQueue: UpdateMap = new Map()
const queueOptions: Required<Omit<Options<boolean>, 'startTransition'>> = {
const queueOptions: Required<Omit<Options, 'startTransition'>> = {
history: 'replace',
scroll: false,
shallow: true,
Expand All @@ -24,7 +24,7 @@ export function enqueueQueryStringUpdate<Value>(
key: string,
value: Value | null,
serialize: (value: Value) => string,
options: Options<boolean>
options: Options
) {
const serializedOrNull = value === null ? null : serialize(value)
debug('[nuqs queue] Enqueueing %s=%s %O', key, serializedOrNull, options)
Expand Down

0 comments on commit 8eeea93

Please sign in to comment.