Closed joswarmer closed 1 week ago
It looks good to me.
I am not 100% sure if it is best to remove the extra check and spare the
// @ts-expect-error TS7053
lines or keep it. It is difficult for me to assess which option is best.
Because we get a lot of untyped data from the Postgres queries, I see no other way that using @ts-expect-error. For the rest of the code, the stricter checking does help at other places in the code.
Add check for each request whether the repository for the request exists. Also activated
noFallthroughCasesInSwitch
andnoImplicitAny
TS options, leading to@ts-expect-error
for database operations as they always return untypes information.