TypeScript safe upcast — `satisfies … as …`In TypeScript sometimes we need the as type operator to massage something which we know is allowed by the runtime, but the type system is…Oct 26, 2023Oct 26, 2023