Skip to content

Normalize File types and improve request typings

Loic Huder requested to merge improve-file-types into main

In !17 (merged), I improved the typing of the login request. In this follow-up PR, I added typings for the remaining requests (namely: fetchFile and fetchDirectory).

I also reorganized a few things:

  • File type was renamed BraggyFile to avoid confusion with JS File (and associated TS type)
  • There were separate type declarations in imageViewSlice and in fileBrowserSlice that described the same objects (File included). Now, both use common types.
  • These common types were put in app/models (renamed from app/types for consistency)
  • Response types were moved in client/models

Merge request reports

Loading