mongodb broken by #41821 #46228
Labels
Recent Regression
This is a new regression just found in the last major/minor version of TypeScript.
Working as Intended
The behavior described is the intended behavior; this is not a bug
Milestone
mongodb has a mapped type
SetFields
that calls a conditional typeFlatten
. Before #41821,Flatten
propagated its constraint from its argument to its return type. Now it does not.To reproduce:
npm i mongodb@4.1.2
import mongodb = require("mongodb")
I'll see if I can create a standalone repro.
If this error is intended, we need to provide a fix for mongodb so they don't break when people start using 4.5.
The text was updated successfully, but these errors were encountered: