Typescript: "cannot use namespace as a type" error
Example:
namespace MyNamespace {}
type MyType = MyNamespace;
Occurs when trying to use a namespace as a type.
Solution:
// Use appropriate types or interfaces instead of namespaces for type definitions.