mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 16:26:15 -04:00
fix(ts): cleaned legacy typechecking warning
This commit is contained in:
parent
362f2fa280
commit
e88c1d5f2c
7 changed files with 20 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue