I am new to TypeScript and saw the following in the @types/prop-types package. What does -?
mean in [K in keyof T]-?
?
export type ValidationMap<T> = { [K in keyof T]-?: Validator<T[K]> };
Similarly, what does -readonly [K in keyof T]?
mean in immer?
export type WritableDraft<T> = {-readonly [K in keyof T]: Draft<T[K]>}
I tried my best to google that, but failed.
Thank you.
Extra keywords: hyphen, minus, grammar