Is it possible to create a variable in TypeScript that can hold either true/false
or an object of booleans
? I'm still learning TS and would like some input on this syntax.
variableA: { a: boolean, b: boolean } | boolean
I found a workaround for now, but I'm curious if there's a better way to approach this.