Closed Bug 1880764 Opened 2 years ago Closed 2 years ago

Initial TypeScript type-checking tooling

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(firefox125 fixed)

RESOLVED FIXED
Tracking Status
firefox125 --- fixed

People

(Reporter: zombie, Assigned: zombie)

References

Details

(Whiteboard: [addons-jira])

Attachments

(4 files)

Splitting off from bug 1872918, as the patch grew in scope since the first version.

Adding tsconfig.json and a few types/*.d.ts support files:

  • gecko.d.ts contains manual additions and adjustments to generated types,
    will be part of the tools/@types typelib when done.

  • tspaths.d.ts has resource:// URI paths for all modules in the component,
    to be generated globally, and will include all gecko modules later.

  • search.d.ts will be the only required file for a new component to start
    adopting type checking, and will mostly include component-specific types
    that need to be available globally, or that can't be expressed using jsdocs.

Using:

mach ts check toolkit/components/search

Depends on D202122

  • Initial tools/ts setup.
  • Mach commands for buidling xpcom related typelibs.
  • Mach command for updating the typelib references.
  • Mach command for type-checking js projects.

Also included the dom typelib for reference.

Assignee: nobody → tomica
Status: NEW → ASSIGNED
Attachment #9380767 - Attachment description: WIP: Bug 1880764 - typescript checking setup for toolkit/search code WIP → WIP: Bug 1880764 - Initial TypeScript checking setup for toolkit/search code
Whiteboard: [addons-jira]

This check was in early versions of D197618, but got lost in a refactoring.

Apparently xpctest idls don't include [noscript] members, so I added some.

Blocks: 1885620
Pushed by tjovanovic@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/df9ee1da64c5 Initial TypeScript tooling r=mossop,Standard8
Pushed by tjovanovic@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a7134d792577 Don't expose [noscript] members to TypeScript r=mossop,nika
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: