@metreeca/qest - v0.12.0
    Preparing search index...

    Function isQuery

    • Checks if a value is a Query over a given retrieval form.

      Holds the node's two halves to their own contracts, so a node is accepted whether it carries retrieval keys, constraint keys, or both.

      Type Parameters

      • T

        The retrieval form the constraints are merged into

      Parameters

      • value: unknown

        The value to check

      • is: Guard<T>

        The guard the node's retrieval half must satisfy

      Returns value is Query<T>

      True if value is a plain object whose constraint entries are all valid and whose remaining entries satisfy is; false otherwise