nuqs Shared Types
APIs exported from @octopus-energy/measurements/storage/nuqs
Use this entry point for types shared by the client and server nuqs parser factories. Runtime parser factories still live in the client and server entry points.
import type {
CreateTimeframeSearchParamsOptions,
CreatePreferencesSearchParamsOptions,
TimeframeSearchParamDefaults,
PreferencesSearchParamDefaults,
} from "@octopus-energy/measurements/storage/nuqs";CreateTimeframeSearchParamsOptions
Options accepted by createTimeframeSearchParams. Pass stable non-date URL
defaults through defaults when the omitted URL value should mean something
other than the package default. Dynamic date defaults do not belong in nuqs
parser config; resolve them separately and pass them to
useTimeframe({ defaults }).
CreateTimeframeSearchParamsOptions<TScope, TDefaults>Prop
Type
TimeframeSearchParamDefaultsProp
Type
CreatePreferencesSearchParamsOptions
Options accepted by createPreferencesSearchParams. Override stable URL
defaults when the omitted URL value should mean a different app default.
CreatePreferencesSearchParamsOptions<TScope, TDefaults>Prop
Type
PreferencesSearchParamDefaultsProp
Type
Related
- nuqs Client: client parser factories and storage adapter
- nuqs Server: server parser factories and scoped param helpers