I've been working on creating a TypeScript object to handle read/write permissions in my application, but I'm stuck on an issue with variable assignment that doesn't make sense to me. Any help or guidance would be greatly appreciated.
export class Permission {
watcher: Object = { read: Boolean = true };
}
When I try to use the code above, I get this error message:
[ts] Cannot assign to 'Boolean' because it is a constant or a read-only property. const Boolean: BooleanConstructor
I have a feeling I'm missing something simple here, so please forgive me if this is a basic mistake.