mirror of
https://github.com/Art051/it-tools.git
synced 2025-08-11 19:29:03 +00:00
fix(ts): cleaned legacy typechecking warning
This commit is contained in:
committed by
Corentin THOMASSET
parent
362f2fa280
commit
e88c1d5f2c
@@ -9,7 +9,7 @@ function sortObjectKeys<T>(obj: T): T {
|
||||
}
|
||||
|
||||
if (Array.isArray(obj)) {
|
||||
return obj.map(sortObjectKeys) as T;
|
||||
return obj.map(sortObjectKeys) as unknown as T;
|
||||
}
|
||||
|
||||
return Object.keys(obj)
|
||||
|
||||
Reference in New Issue
Block a user