Typescript type RequireSome<T, K extends keyof T> removing undefined AND null from properties
问题 RequireSome type from another, very simialar question. This question is similar but it should not be a duplicate since here we want to also remove null as well as undefined from properties. Maybe the name shouldn't be Require but something like NonNullable or of this kind. The goal of this type is to specify which fields from a type should not be undefined or null, and return their types without undefined and null. type Question = { id: string; answer?: string | null; thirdProp?: number |