• 
      

    Use allowDeclareFields and fix prototypeAttrs.

    Review Request #14998 — Created April 2, 2026 and submitted

    Information

    Review Board
    master

    Reviewers

    This change turns on allowDeclareFields for @babel/preset-typescript
    and fixes potential issues with any prototypeAttrs that might be
    affected. This also adds in some missing type declarations for prototype
    attrs.

    A few places still had either duplicate prototypeAttrs (from back when
    we had the spina bug about inheriting them) or just incorrect ones (e.g.
    actionBuilders inside licenseModel, when it now actually exists on
    the view). These have all been cleaned up.

    Ran unit tests.

    Summary ID
    Use allowDeclareFields and fix prototypeAttrs.
    This change turns on `allowDeclareFields` for `@babel/preset-typescript` and fixes potential issues with any `prototypeAttrs` that might be affected. This also adds in some missing type declarations for prototype attrs. A few places still had either duplicate `prototypeAttrs` (from back when we had the spina bug about inheriting them) or just incorrect ones (e.g. `actionBuilders` inside `licenseModel`, when it now actually exists on the view). These have all been cleaned up. Testing Done: Ran unit tests.
    ntwnnplkmwktnposyuopxwxuvztplrxq
    Description From Last Updated

    Why do we keep the prototypeAttrs here.

    maubin maubin

    How come we use AbstractCommentBlock in the static definition but TCommentBlockType in the declare.

    maubin maubin
    maubin
    1. 
        
    2. Show all issues

      Why do we keep the prototypeAttrs here.

      1. We still want COMMENT_LINK_NAMES to get attached to the prototype. We no longer need to include the parent class' extraQueryArgs because that spina bug was fixed.

    3. Show all issues

      How come we use AbstractCommentBlock in the static definition but TCommentBlockType in the declare.

      1. In TS, we can't use the generic TCommentBlockType for static members.

    4. 
        
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (cc94bc7)