Skip to content

Commit

Permalink
chore: change type
Browse files Browse the repository at this point in the history
  • Loading branch information
xernobyl committed Jul 3, 2024
1 parent a9c3797 commit 3ac49c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function addFileToFormData(

return data;
}
export function normalizeQuerySort<T extends Record<string, AscDesc | undefined>>(sort: T | T[]) {
export function normalizeQuerySort<T extends Record<string, AscDesc | undefined | string[]>>(sort: T | T[]) {
const sortFields: Array<{ direction: AscDesc; field: keyof T }> = [];
const sortArr = Array.isArray(sort) ? sort : [sort];
for (const item of sortArr) {
Expand Down

0 comments on commit 3ac49c9

Please sign in to comment.