Hello!
I'm trying to get some data from my redis store.
If I don't assert the value the original type is unknown.
And I know for a fact that it will either return ListBlockChildrenResponse if it exists or null if the value does not exist in the store. And depending on if it exists I'll fetch it from a db and add it to Redis.
const redisData = await kv.hget(redisHashKey, `${redisHashBaseField}:${input.id}`) as (ListBlockChildrenResponse | null)
typescript-eslint is however giving me the following
This assertion is unnecessary since it does not change the type of the expression.eslint@typescript-eslint/no-unnecessary-type-assertion.
And I'm a bit confused why. It was unknown, and now it's asserted as a union of two values.
Would that not change the type of the expression?

