The left-hand side of an assignment expression may not be an optional property access.
Supporting Information
type Obj = {
prop?: string
}
let obj: Obj = {}
obj?.prop ??= "Hey"
// The left-hand side of an assignment expression may not be an optional property access.
Error Text
The left-hand side of an assignment expression may not be an optional property access.
Supporting Information