From 21e1866421858a906bc02625a13c459d3c6a4a5f Mon Sep 17 00:00:00 2001 From: Martin Cura Date: Tue, 10 Dec 2024 22:06:24 -0300 Subject: [PATCH] fix(types): export `Nullable` type For both client and server, solves TS issue --- packages/nuqs/src/index.server.ts | 2 +- packages/nuqs/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuqs/src/index.server.ts b/packages/nuqs/src/index.server.ts index df2a4c7ec..3bfc48457 100644 --- a/packages/nuqs/src/index.server.ts +++ b/packages/nuqs/src/index.server.ts @@ -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' diff --git a/packages/nuqs/src/index.ts b/packages/nuqs/src/index.ts index 0261f3a51..b8bc6f515 100644 --- a/packages/nuqs/src/index.ts +++ b/packages/nuqs/src/index.ts @@ -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'