This is my code and 'type' is underlined in red and show me this error:
'type' is declared but its value is never read.ts(6133)
My code:
@ManyToMany(type => RoleEntity, role => role.users, {eager: true})
Any solutions?
This is my code and 'type' is underlined in red and show me this error:
'type' is declared but its value is never read.ts(6133)
My code:
@ManyToMany(type => RoleEntity, role => role.users, {eager: true})
Any solutions?
Like Noah said, you can use a discard name like _ or you can use a blank function. The two approaches would look like so:
@ManyToMany(_ => RoleEntity, role => role.users, {eager: true})
OR
@ManyToMany(() => RoleEntity, role => role.users, {eager: true})