Re:TypeScript: Control flow analysis for destructured discri...
by JZumun on Thursday November 04, 2021 @05:16AM
(#29104912)
{ [Key in KeysType]-?: ... }
TIL that you can disable ? and readonly in mapped types using -. So in the above code, every Key will be mandatory (-?) even if the original one in KeysType was optional.
source: https://www.typescriptlang.org/docs/handbook/2/mapped-types....