UNPKG

nuqs-svelte

Version:

Svelte adaptation of the `nuqs` library for managing URL query strings as state.

11 lines (10 loc) 336 B
import type { AdapterInterface, UseAdapterHook } from "./types"; declare global { interface Window { __NuqsAdapterContext?: ReturnType<typeof createAdapterContext>; } } export declare const createAdapterContext: ({ adapter }: { adapter: AdapterInterface; }) => void; export declare const useAdapter: UseAdapterHook;