microsoft / microsoft/TypeScript
Quick info shouldn't default to showing jsdoc from first overload
Abierto
@sandersn ya está trabajando en esto.
Desde el 12/8/2021.
Needs Proposal
Suggestion
- Lenguaje dominante
- Go
- Estrellas
- 111k
- Forks
- 14.4k
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 117
Descripción
https://github.com/microsoft/TypeScript/issues/43053
This is still happening at least with the tap function from rxjs. VSCode 1.58.2. TS version in project: 4.3.5
Deprecation warning shows up regardless of which overloaded signature you use. Should not show up for the last two signatures.
import { interval } from 'rxjs';
import { tap } from 'rxjs/operators';
interval(5000)
.pipe(
tap(console.log), // "deprecated - Use an observer instead of a complete callback"
tap({ next: console.log, error: console.log, complete: console.log }) // "deprecated
)
rxjs/tap.d.ts:
import { MonoTypeOperatorFunction, PartialObserver } from '../types';
/** @deprecated Use an observer instead of a complete callback */
export declare function tap<T>(next: null | undefined, error: null | undefined, complete: () => void): MonoTypeOperatorFunction<T>;
/** @deprecated Use an observer instead of an error callback */
export declare function tap<T>(next: null | undefined, error: (error: any) => void, complete?: () => void): MonoTypeOperatorFunction<T>;
/** @deprecated Use an observer instead of a complete callback */
export declare function tap<T>(next: (value: T) => void, error: null | undefined, complete: () => void): MonoTypeOperatorFunction<T>;
export declare function tap<T>(next?: (x: T) => void, error?: (e: any) => void, complete?: () => void): MonoTypeOperatorFunction<T>;
export declare function tap<T>(observer: PartialObserver<T>): MonoTypeOperatorFunction<T>;
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.