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
@@ -67,7 +67,7 @@
} else {
const type = taskTypes.get(kind)
if (type !== undefined) {
statuses = type.statuses.map((p) => store.get(p)).filter((p) => p !== undefined) as Status[]
statuses = type.statuses.map((p) => store.get(p)).filter((p) => p !== undefined)
}
}
}
@@ -129,7 +129,7 @@
description
})
const states = _taskType.statuses.map((p) => $statusStore.byId.get(p)).filter((p) => p !== undefined) as Status[]
const states = _taskType.statuses.map((p) => $statusStore.byId.get(p)).filter((p) => p !== undefined)
const lastIndex = states.findLastIndex((p) => p.category === category)
const statuses = [..._taskType.statuses.slice(0, lastIndex + 1), _id, ..._taskType.statuses.slice(lastIndex + 1)]
@@ -189,12 +189,11 @@
status = await client.findOne(_class, { _id })
}
const sameCategory = (
_taskType.statuses
.map((it) => $statusStore.byId.get(it))
.filter((it) => it !== undefined)
.filter((it) => it?.category === status?.category) as Status[]
).filter((it, idx, arr) => arr.findIndex((qt) => qt._id === it._id) === idx)
const sameCategory = _taskType.statuses
.map((it) => $statusStore.byId.get(it))
.filter((it) => it !== undefined)
.filter((it) => it?.category === status?.category)
.filter((it, idx, arr) => arr.findIndex((qt) => qt._id === it._id) === idx)
canDelete = sameCategory.length > 1
selectableStates = sameCategory.filter((it) => it._id !== status?._id)
@@ -156,12 +156,11 @@
const category = _status.category !== undefined ? categoriesMap.get(_status.category) : undefined
const projectStatus = getProjectStatus(type, _status)
const color = getProjectStatus(type, _status)?.color ?? _status.color ?? category?.color
const sameCategory = (
taskType.statuses
.map((it) => $statusStore.byId.get(it))
.filter((it) => it !== undefined)
.filter((it) => it?.category === _status.category) as Status[]
).filter((it, idx, arr) => arr.findIndex((qt) => qt._id === it._id) === idx)
const sameCategory = taskType.statuses
.map((it) => $statusStore.byId.get(it))
.filter((it) => it !== undefined)
.filter((it) => it?.category === _status.category)
.filter((it, idx, arr) => arr.findIndex((qt) => qt._id === it._id) === idx)
$settingsStore = {
id: opened,
@@ -39,7 +39,7 @@
): Status[] {
if (type === undefined) return []
let res = type.statuses.map((p) => statusStore.get(p._id)).filter((p) => p !== undefined) as Status[]
let res = type.statuses.map((p) => statusStore.get(p._id)).filter((p) => p !== undefined)
if (taskType !== undefined) {
res = res.filter((p) => taskType.statuses.includes(p._id))
}