Inspection is raising this issue... according to this WebStorm blog post, I tried to update it but it's raising the same issue for these imports:
server.ts
....
// models
import { IModel } from './models/model'; //import IModel
import { IUserModel } from './models/user'; //import IUserModel
models/model.ts
import { Model } from "mongoose";
import { IUserModel } from "./user";
export interface IModel {
user: Model<IUserModel>;
}
models/user.ts
import { Document } from "mongoose";
import { IUser } from "../interfaces/user";
export interface IUserModel extends IUser, Document {
//custom methods for user model would be defined here
}
details for update are given in this post
dir/toExport.ts
export class Foo {}
dir/index.ts
export {Foo} from './toExport'
client.ts
import {Foo} from './dir/toExport' //inspection warining
**after fix**
client.ts
import {Foo} from './dir'
but it does not work as it should do ...
UPDATE
WebStorm Code Style preferences for TypeScript