Port API serializer methods over to TypeScript.

Review Request #13007 — Created May 4, 2023 and submitted

david
Review Board
release-6.x
reviewboard

This change ports the serializer methods to TypeScript.

Ran js-tests.

Summary
Port API serializer methods over to TypeScript.
Description From Last Updated

We should add a typing alias for these mappings (mybe even the serialize/deserializer function types themselves), so subclasses can reference …

chipx86chipx86

While here, can we add parens to make the order of logic explicit?

chipx86chipx86
chipx86
  1. 
      
  2. reviewboard/static/rb/js/common/resources/models/baseResource.ts (Diff revision 1)
     
     
     
     
     
     
     
     
     

    We should add a typing alias for these mappings (mybe even the serialize/deserializer function types themselves), so subclasses can reference them more easily.

  3. While here, can we add parens to make the order of logic explicit?

    1. Gonna change this to if/else

  4. 
      
david
david
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-6.x (4e97557)
Loading...