Closed
Description
We should update our TypeScript definition so that our assertions are typed as such, see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions.
That said, I haven't checked whether and how we can make this work for which assertions.