prorm API Reference
    Preparing search index...

    Type Alias WindowOrderDirection

    WindowOrderDirection: SortDirection | "ASC" | "DESC"

    Sort direction for ORDER BY within a window definition.

    Accepts the shared SortDirection enum (re-exported from ../../types) in addition to the raw 'ASC' / 'DESC' string literals, which remain fully supported for backward compatibility.

    // Using raw string literals (still supported)
    rowNumber().partitionBy('department').orderBy('salary', 'DESC')

    // Using the SortDirection enum
    import { SortDirection } from 'prorm';
    rowNumber().partitionBy('department').orderBy('salary', SortDirection.DESC)