TypeScript Bug: incorrect Context typing in v5