Skip to content

Commit cc4a0b8

Browse files
committed
refactor: use proper typing instead of any
1 parent ab592d3 commit cc4a0b8

File tree

1 file changed

+2
-2
lines changed
  • governance/xc_admin/packages/xc_admin_common/src/programs/core

1 file changed

+2
-2
lines changed

governance/xc_admin/packages/xc_admin_common/src/programs/core/core_adapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,11 @@ export class PythCoreAdapter implements ProgramAdapter {
332332
/**
333333
* Sort object by keys
334334
*/
335-
private sortObjectByKeys<T extends Record<string, any>>(obj: T): T {
335+
private sortObjectByKeys<T extends Record<string, unknown>>(obj: T): T {
336336
const sortedObj = {} as T;
337337
const keys = Object.keys(obj).sort();
338338
for (const key of keys) {
339-
sortedObj[key as keyof T] = obj[key];
339+
sortedObj[key as keyof T] = obj[key] as T[keyof T];
340340
}
341341
return sortedObj;
342342
}

0 commit comments

Comments
 (0)