Add type hints for the gettext functions and Underscore compatibility.
Review Request #13668 — Created March 25, 2024 and submitted
This introduces TypeScript type hints that cover the functions and
tagged template literals processed by this plugin. It also includes a
shim for Underscore that helps merge the definitions for Underscore's
_
object and the_
gettext alias.Consumers will want to reference the types in individual files or in a
global.d.ts
by including the line:/// <reference types="babel-plugin-django-gettext"/>
Made use of these new definitions in Djblets and Review Board.
Unit tests pass.
Summary | ID |
---|---|
ce8476998da0b15f991f1a89700bc6802c343942 |
- Change Summary:
-
Fixed missing semicolons.
- Commits:
-
Summary ID 9c1bf166c4919a5fd6803bf3f8802f4a9d9a1e34 ce8476998da0b15f991f1a89700bc6802c343942
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.
- Description:
-
This introduces TypeScript type hints that cover the functions and
tagged template literals processed by this plugin. It also includes a shim for Underscore that helps merge the definitions for Underscore's _
object and the_
gettext alias.~ Consumer will want to reference the types in individual files or in a
~ Consumers will want to reference the types in individual files or in a
global.d.ts
by including the line:/// <reference types="babel-plugin-django-gettext"/>