Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
JSDoc - @link to a variable of the same module

I have this module

/**
   ...
   @module utils/camera
*/


/**
 * Default app images valid dimensions.
 *
 * @constant
 * @type {Array<Dimension>}
 * @default
 * [
 *   {
 *     width: 1080,
 *     height: 1080,
 *   },
 *   ...
 * ]
 */
export const DEFAULT_IMAGE_VALID_DIMENSIONS = [
  {
    width: 1080,
    height: 1080,
  },
  ...
];

export const CROPPERS = [
  {
    dimensions: DEFAULT_IMAGE_VALID_DIMENSIONS[0],
  },
  ...
];

And I am trying to document the CROPPERS constant like this:

/**
 * Default camera cropper configuration.
 *
 * @constant
 * @type {Array<CropperConfiguration>}
 * @default
 * [
 *   {
 *     dimensions: {@link module:utils/camera#DEFAULT_IMAGE_VALID_DIMENSIONS|DEFAULT_IMAGE_VALID_DIMENSIONS[0]},
 *     ...
 *   },
 *   ...
 * ]
 */

But the @link doesn't work. Is it possible to link a field to a constant of the same module?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda