Documentation
    Preparing search index...

    Interface CountServiceOptions

    interface CountServiceOptions {
        maxFilters?: number;
        count(
            request: CountRequest,
        ): number | CountResult | Promise<number | CountResult>;
        isFilterSupported?(filter: NostrFilter, index: number): string | boolean;
    }
    Index

    Properties

    maxFilters?: number

    Maximum number of OR filters accepted before refusing the request.

    Methods

    • Optional refusal policy for unsupported or too-expensive filters.

      Return true to allow the filter, false for a generic refusal, or a string with the refusal reason.

      Parameters

      • filter: NostrFilter

        Filter being evaluated.

      • index: number

        Filter index in the OR filter set.

      Returns string | boolean