I'm trying to create a nested class mostly because the nested classes only need to be used inside the parent. I've tried the following ...
class Foo {
static Bar = class {}
myBar: Foo.Bar // This gives "'Foo' refers to a type but is being used as a namespace here"
}
const bar = new Foo.Bar() // This is OK
... but as the comment says, this doesn't work when used as a type inside the parent. Is there a correct way to reference that I am missing?
I'm using Typescript 4.1.3