MCPcopy Create free account
hub / github.com/TanStack/db / matchesDirection

Function matchesDirection

packages/db/src/indexes/base-index.ts:196–198  ·  view source on GitHub ↗

* Checks if the index matches the provided direction.

(direction: OrderByDirection)

Source from the content-addressed store, hash-verified

194 * Checks if the index matches the provided direction.
195 */
196 matchesDirection(direction: OrderByDirection): boolean {
197 return this.compareOptions.direction === direction
198 }
199
200 getStats(): IndexStats {
201 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected