Beignet API reference
    Preparing search index...

    Class NuqsContractHelper<TContract>

    Nuqs helper bound to one contract.

    Type Parameters

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Create a URL-state query helper for this contract.

      The contract must declare a query schema so parser keys can be checked against the contract query shape.

      Type Parameters

      • TParsers extends Partial<
            {
                [K in string]: {
                    [Key in string]: KeyMapValue<
                        { [P in string]: Exclude<QueryRecord<(...)>[P], undefined> }[Key],
                    >
                }[K]
            },
        > & { [key: string]: KeyMapValue<any> }

      Parameters

      Returns NuqsQueryHelper<TContract, TParsers>