When not using Namespaces, I still need to be passing Namespace: undefined in the type, and namespace: () => undefined at initialization. It'd be nice if the namespace type was Namespace?: Namespace | undefined and the namespace type was required iff Namespace is defined.
When not using Namespaces, I still need to be passing
Namespace: undefinedin the type, andnamespace: () => undefinedat initialization. It'd be nice if the namespace type wasNamespace?: Namespace | undefinedand thenamespacetype was required iffNamespaceis defined.