You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS2322: Type 'typeof User' is not assignable to type 'string | ModelCtor<Model<any, any>>'. Type 'typeof User' is not assignable to type 'ModelCtor<Model<any, any>>'. Type 'typeof User' is not assignable to type 'typeof Model'. Construct signature return types 'User' and 'Model<T, T2>' are incompatible. The types of '_attributes' are incompatible between these types. Type 'User' is not assignable to type 'T'. 'T' could be instantiated with an arbitrary type which could be unrelated to 'User'.
The text was updated successfully, but these errors were encountered:
i have user model :-
import { Column, Model, Table } from 'sequelize-typescript';
@table({
tableName: 'users',
})
export class User extends Model {
@column
name: string;
@column
age: number;
}
TS2322: Type 'typeof User' is not assignable to type 'string | ModelCtor<Model<any, any>>'. Type 'typeof User' is not assignable to type 'ModelCtor<Model<any, any>>'. Type 'typeof User' is not assignable to type 'typeof Model'. Construct signature return types 'User' and 'Model<T, T2>' are incompatible. The types of '_attributes' are incompatible between these types. Type 'User' is not assignable to type 'T'. 'T' could be instantiated with an arbitrary type which could be unrelated to 'User'.
The text was updated successfully, but these errors were encountered: