Skip to content

Draft: Adds types for ~/locale module

Kos Palchyk requested to merge kpalchyk/types-for-jed into master

What does this MR do and why?

Adds type definitions for ~/locale i18n tools: __, n__, s__, and sprintf.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After

image.png

src: app/assets/javascripts/ci/ci_variable_list/components/ci_variable_table.vue

image.png

image.png

src: app/assets/javascripts/ci/artifacts/constants.js

image.png

image.png

src: app/assets/javascripts/deprecated_notes.js

image.png

image.png

src: app/assets/javascripts/ci/ci_variable_list/components/ci_variable_table.vue

image.png

How to set up and validate locally

  1. Checkout the branch
  2. Ensure you have jsconfig.json configured to know the aliases
  3. Restart your TS language server
  4. Hover.
Edited by Kos Palchyk

Merge request reports