fix(ts): cleaned legacy typechecking warning

This commit is contained in:
Corentin Thomasset authored and Corentin THOMASSET committed 2023-04-23 17:11:04 +02:00
1 parent 362f2fa280
commit e88c1d5f2c
7 files changed
+20 -17

No files matched your search

+1 -1
View File
@@ -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)