I have the following source tree:

```
/project/
  |- src/
      |- moduleA
          |- index.ts
          |- classA.ts (with a public function doSomething())
      |- moduleB
          |- classB.ts

```

`moduleA` `index.ts`:

```
export * from './classA'

```

`moduleA` `classA.ts`:

```
export default class ClassA {
    public doSomething(req: Request, res: Response, next: NextFunction) {
    }
}

```

and `moduleB` tries to import `classA` in order to use `doSomething()`:

```
import {classA} from 'moduleA'

```

Error when `npm run build` in `moduleB`:

```
routes/api.ts:2:10 - error TS2305: Module '"moduleA"' has no exported member 'ClassA'.

2 import { ClassA } from 'moduleA';
           ~~~~~~~~~

```

What do I miss? Thanks.