What is the type for an .orderBy() parameter

Inside of a function, i have a query more complicated than this, but something like:

db.select().from(users).where(...).orderBy(asc(users.username))


I'd like to be able to pass in the

asc(users.username)


part of that from the outside., but to do that I need to know what type i should be putting on the function parameter.
Was this page helpful?