Could someone provide some insight on this issue?
I’m encountering an error message that says
Failed to compile. Parsing error: Expression expected
with this specific line of code -
isLogViewVisible: dashboard?.logView !== null
where the variable isLogViewVisible
is of type boolean
interface IDashboard {
logView: ILogView
}
interface ILogView {
history: string
}
let dashboard: IDashboard | null;
let logView: ILogView | null;
const someVariable = {
isLogViewVisible: dashboard?.logView !== null
}