TypeScript Interfaces for Mongoose - Node.js Tutorial 29

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

Рекомендации по теме
Комментарии
Автор

Thank you for the video. Still however you have a lot of repetition in your code, in the sense that you define the same things twice (one of TS and one for Mongoose). Is there a way to define only the TS interfaces and automatically extract the mongoose code for them? Thanks!

CharalamposKyfonidis
Автор

what about if i have a types.objectid in the schema. how do i declare it in the interface?

joaquincataldo
join shbcf.ru