fix(ts): cleaned legacy typechecking warning
This commit is contained in:
1 parent
362f2fa280
commit
e88c1d5f2c
7 files changed
+20
-17
No files matched your search
@@ -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