Utility type to remove nullable keys from a type.
type WithoutNullableKeys<Type> = { [Key in keyof Type]-?: WithoutNullableKeys<NonNullable<Type[Key]>> }
Utility type to remove nullable keys from a type.