The concept so far has been to define the schema of storage.fields in an array to follow the Multer.
However, I believe that arrays are difficult to infer strictly using generics, and that having fields inferred in object form is better for future extensions and for DX.
The concept so far has been to define the schema of
storage.fields
in an array to follow the Multer.However, I believe that arrays are difficult to infer strictly using generics, and that having fields inferred in object form is better for future extensions and for DX.
Before
After
Applying this changes, I think
c.var.files
could easily be type-safe.