Switch to typescript 5.8.3 (#9152)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-06-04 17:57:10 +05:00
committed by GitHub
parent 07c364c776
commit fcb67d20f8
562 changed files with 5212 additions and 5273 deletions
+4 -2
View File
@@ -552,7 +552,7 @@ export async function buildModel (options: BuildModelOptions): Promise<Attribute
return errorPresenter
}
})
return (await Promise.all(model)).filter((a) => a !== undefined) as AttributeModel[]
return (await Promise.all(model)).filter((a) => a !== undefined)
}
export async function deleteObject (client: TxOperations, object: Doc): Promise<void> {
@@ -964,7 +964,9 @@ export async function getCategories (
*/
export function getCategorySpaces (categories: CategoryType[]): Array<Ref<Space>> {
return Array.from(
(categories.filter((it) => typeof it === 'object') as AggregateValue[]).reduce<Set<Ref<Space>>>((arr, val) => {
categories
.filter((it) => typeof it === 'object')
.reduce<Set<Ref<Space>>>((arr, val) => {
val.values.forEach((it) => arr.add(it.space))
return arr
}, new Set())