Closed Bug 1712446 Opened 5 months ago Closed 5 months ago

Incorporate @types/foo for dependencies of frontend code

Categories

(Webtools Graveyard :: Pontoon, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: axel, Unassigned)

References

Details

Attachments

(1 file)

When converting to TypeScript, I only took some of the available external type libraries for the frontend dependencies.

Tracking to investigate which are available, and which fixes they need.

https://www.typescriptlang.org/dt/search allows to search for modules easily.

Useful tool: npx typesync --dry-run

Packages that don't work for us:

  • react-linkify has a typing lib, but they don't support the properties prop, which has been removed on master. An upcoming release is likely gonna ship with typescript bindings, too.

I personally gave up trying

  • react-redux, and thus anything with redux in its name. That's rightfully its own bug 1712447.
  • react-tabs, the commentTabRef was beyond me.

I'll have a PR for the simple stuff, though.

See Also: → 1714369
See Also: → 1714370
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.