Also you don’t need to use @types/mongoose since mongoose 5.11 was published with its own type definitions. Hope it helps. Typescript Schema definition is incorrect · Issue #9606 · Automattic/mongoose · GitHub
2 Likes