microsoft / microsoft/TypeScript

Type completions in jsDoc @augments and @implements tags.

Abierto
#36,939 2 comentarios 3 reacciones 1 asignado Ver en GitHub

@sandersn ya está trabajando en esto.

Desde el 26/2/2020.

Needs Investigation
Lenguaje dominante
Go
Estrellas
111k
Forks
14.3k
Merge medio
2 d 4 h
PR fusionados (30 d)
132

Descripción

Suggestion

Add code completions in jsDoc @augments and @implements clauses.

Use Cases

Anybody using the new @implements and @augments jsDoc tags will benefit from this.

Examples

Inside the {} triggering code completions should show types.

/**
 * @augments {}
 * @implements {}
 */
declare class B {
    b(): void;
    i(): void;
}

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

This is a flow-on from #36292 cc: @sandersn

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.