Skip to content

Commit df343d1

Browse files
committed
Fix type
1 parent 22cdc82 commit df343d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/json-sort-master/json.models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function sortObjectKeys<T>(obj: T, sortMethod: string): T {
2020
}, {} as Record<string, unknown>) as T;
2121
}
2222

23-
function sortObjectValues(obj: any, sortMethod: string, keyName: string): any {
23+
function sortObjectValues<T>(obj: T, sortMethod: string, keyName: string): T {
2424
if (Array.isArray(obj)) {
2525
return obj.sort((a, b) => {
2626
const valueA = a[keyName];

0 commit comments

Comments
 (0)