import { freeze } from '../util/object-utils.js' ; import { OperationNode } from './operation-node.js' ; import { ReferenceExpressionNode } from './operation-node-utils.js' ; import { RawNode } from './raw-node.js' ; export interface OrderByItemNode extends OperationNode { readonly kind : 'OrderByItemNode' ; readonly orderBy : ReferenceExpressionNode ; readonly direction ? : RawNode ; } internal export const OrderByItemNode = freeze ( { is ( node ) { return node . kind === 'OrderByItemNode' ; } , create ( orderBy , direction ? ) { return freeze ( { kind : 'OrderByItemNode' , orderBy , direction , } ) ; } , } ) ;