Opposite of Simplify?
Author: bombillazoCreated Oct 1, 2023Updated Jul 13, 2026
Labelstype addition
Hello, is there a way to "unsimplify" a type so that it is not spread during some intellisense suggestions? For example
type MyType = {
a: boolean,
b: string,
c: string,
...
z: number,
}
type ParamUnion = MyType | TypeA | TypeBy
// do not expand the type definition of MyType when inspecting ParamUnion!
const myFunc = (param1: ParamUnion) => {
...
}Source: sindresorhus/type-fest