Skip to content

Commit

Permalink
fix(types): Export Nullable type for correctly inferring return typ…
Browse files Browse the repository at this point in the history
…e of `createSerializer()` (#801)
  • Loading branch information
MartinCura authored Dec 11, 2024
1 parent bf0e2cb commit ab99d7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nuqs/src/index.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { createSearchParamsCache } from './cache'
export type { HistoryOptions, Options, SearchParams } from './defs'
export type { HistoryOptions, Nullable, Options, SearchParams } from './defs'
export * from './parsers'
export { createSerializer } from './serializer'
2 changes: 1 addition & 1 deletion packages/nuqs/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type { HistoryOptions, Options, SearchParams } from './defs'
export type { HistoryOptions, Nullable, Options, SearchParams } from './defs'
export * from './parsers'
export { createSerializer } from './serializer'
export * from './useQueryState'
Expand Down

0 comments on commit ab99d7d

Please sign in to comment.