Skip to content
RED SAG Skills
hardStudy question · answer published in JavaScript interview questions, so no pointsjavascripttypescriptmapped-types

Removing optional and readonly

What does this mapped type produce for { readonly id?: string }?

type Mutable<T> = { -readonly [K in keyof T]-?: T[K] }
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions