diff --git a/packages/kmore/src/lib/builder.types.ts b/packages/kmore/src/lib/builder.types.ts index 1160e9eea..e67a93e15 100644 --- a/packages/kmore/src/lib/builder.types.ts +++ b/packages/kmore/src/lib/builder.types.ts @@ -410,22 +410,22 @@ interface OrderBy< ( columnName: keyof TRecord | QueryBuilder, - order?: 'asc' | 'desc', - nulls?: 'first' | 'last' + order?: 'asc' | 'desc' | undefined, + nulls?: 'first' | 'last' | undefined ): KmoreQueryBuilder ( columnName: string | QueryBuilder, - order?: string, - nulls?: string + order?: string | undefined, + nulls?: string | undefined ): KmoreQueryBuilder ( columnDefs: (| keyof TRecord | Readonly<{ column: keyof TRecord | QueryBuilder, - order?: 'asc' | 'desc', - nulls?: 'first' | 'last', + order?: 'asc' | 'desc' | undefined, + nulls?: 'first' | 'last' | undefined, }>)[] ): KmoreQueryBuilder @@ -433,8 +433,8 @@ interface OrderBy< columnDefs: (| string | Readonly<{ column: string | QueryBuilder, - order?: string, - nulls?: string, + order?: string | undefined, + nulls?: string | undefined, }>)[] ): KmoreQueryBuilder }