Skip to content

Commit

Permalink
feat(kmore): update interface OrderBy
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Feb 2, 2024
1 parent d99aa50 commit 5b65cef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/kmore/src/lib/builder.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,31 +410,31 @@ interface OrderBy<

(
columnName: keyof TRecord | QueryBuilder,
order?: 'asc' | 'desc',
nulls?: 'first' | 'last'
order?: 'asc' | 'desc' | undefined,
nulls?: 'first' | 'last' | undefined
): KmoreQueryBuilder<D, CaseConvert, EnablePage, TRecord, TResult>

(
columnName: string | QueryBuilder,
order?: string,
nulls?: string
order?: string | undefined,
nulls?: string | undefined
): KmoreQueryBuilder<D, CaseConvert, EnablePage, TRecord, TResult>

(
columnDefs: (| keyof TRecord
| Readonly<{
column: keyof TRecord | QueryBuilder,
order?: 'asc' | 'desc',
nulls?: 'first' | 'last',
order?: 'asc' | 'desc' | undefined,
nulls?: 'first' | 'last' | undefined,
}>)[]
): KmoreQueryBuilder<D, CaseConvert, EnablePage, TRecord, TResult>

(
columnDefs: (| string
| Readonly<{
column: string | QueryBuilder,
order?: string,
nulls?: string,
order?: string | undefined,
nulls?: string | undefined,
}>)[]
): KmoreQueryBuilder<D, CaseConvert, EnablePage, TRecord, TResult>
}
Expand Down

0 comments on commit 5b65cef

Please sign in to comment.