this utility type removes all property keys that are of the never type.
never
type MyType = { a: number, b: never, c: never, d: { e: never, f: string } }type MyType_Cleansed = RemoveNeverKeys<MyType>// type MyType_Cleansed === { a: number, d: { e: never, f: string } } Copy
type MyType = { a: number, b: never, c: never, d: { e: never, f: string } }type MyType_Cleansed = RemoveNeverKeys<MyType>// type MyType_Cleansed === { a: number, d: { e: never, f: string } }
Generated using TypeDoc
this utility type removes all property keys that are of the
never
type.