Skip to content

Commit 21e1866

Browse files
committed
fix(types): export Nullable type
For both client and server, solves TS issue
1 parent bf0e2cb commit 21e1866

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/nuqs/src/index.server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export { createSearchParamsCache } from './cache'
2-
export type { HistoryOptions, Options, SearchParams } from './defs'
2+
export type { HistoryOptions, Nullable, Options, SearchParams } from './defs'
33
export * from './parsers'
44
export { createSerializer } from './serializer'

packages/nuqs/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type { HistoryOptions, Options, SearchParams } from './defs'
1+
export type { HistoryOptions, Nullable, Options, SearchParams } from './defs'
22
export * from './parsers'
33
export { createSerializer } from './serializer'
44
export * from './useQueryState'

0 commit comments

Comments
 (0)