• 
      

    Use allowDeclareFields and fix prototypeAttrs.

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

    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
    Checks run (2 succeeded)
    flake8 passed.
    JSHint passed.