In my current class implementation, I have defined the following:
export class HavenHandler implements IHavenHandler {
opts: {
auto: true
handleGlobalErrors: true;
revealStackTraces: true
}
// compared to:
opts: {
auto: boolean
handleGlobalErrors: boolean;
revealStackTraces: boolean
}
}
I am looking for a way to achieve this functionality:
opts: {
auto: true as boolean
handleGlobalErrors: true as boolean;
revealStackTraces: true as boolean
}
This would allow me to easily toggle them to false when required later on. However, currently, I am unable to modify them to false due to restrictions imposed by the compiler.