tl-its-umich-edu / canvas-course-manager-next

Canvas Course Manager Next: A redesign of the existing CCM application. It extends Canvas features, makes cumbersome features easier to use, and adds new features.
8 stars 9 forks source link

Explore `mapped-types` for creating re-usable DTOs #313

Open ssciolla opened 2 years ago

ssciolla commented 2 years ago

Some of these properties are repeated from other DTOs. There appear to be ways to build variations on other DTOs using mapped-types (https://docs.nestjs.com/openapi/mapped-types#mapped-types). I think I may leave this the way it is for now, as I think we'll need to reexamine the set of DTOs once PR #247 is completed.

_Originally posted by @ssciolla in https://github.com/tl-its-umich-edu/canvas-course-manager-next/pull/301#discussion_r793885338_