Flattens the type output to improve type hints shown in editors. Also transforms an interface
into a type to aid with assignability.
Copied from the Simplify type in the type-fest package so that this package's public types do
not depend on type-fest (see the note in type-checks.ts).
Flattens the type output to improve type hints shown in editors. Also transforms an interface into a type to aid with assignability.
Copied from the
Simplifytype in thetype-festpackage so that this package's public types do not depend ontype-fest(see the note intype-checks.ts).