adopted-ember-addons / adopted-ember-addons/ember-data-model-fragments

Array attribute typing seems to be wrong

Abierto
#457 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug good first issue
Lenguaje dominante
TypeScript
Estrellas
367
Forks
108
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

The following line suggest that `array` attribute takes in two arguments, type and options.
https://github.com/adopted-ember-addons/ember-data-model-fragments/blob/cfa5e5e1716d2508a13a0e973cf5b51c45bedb79/addon/attributes.js#L151

Whereas the existing type information defined in the line below suggest `array` attribute does not take any arguments:
https://github.com/adopted-ember-addons/ember-data-model-fragments/blob/cfa5e5e1716d2508a13a0e973cf5b51c45bedb79/attributes.d.ts#L33

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Compare the runtime signature for `array` in addon/attributes.js at line 151 with its declaration in attributes.d.ts at line 33. Update the type information so it matches the arguments accepted by the runtime, then verify that the declaration and usage are consistent.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript, typescript
Área
developer-experience, frontend
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.