Port API serializer methods over to TypeScript.

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

Information

Review Board
release-6.x

Reviewers

This change ports the serializer methods to TypeScript.

Ran js-tests.

Summary ID
Port API serializer methods over to TypeScript.
This change ports the serializer methods to TypeScript. Testing Done: Ran js-tests.
7ae8a9e9eec4eee8221c0d0efcd0e52088df7294
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)
     
     
     
     
     
     
     
     
     
    Show all issues

    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. Show all issues

    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:
Completed
Change Summary:
Pushed to release-6.x (4e97557)