Microsoft/TypeScript
Voir sur GitHubDeprecated should support contextual type with signature resolution
Open
#39 296 ouverte le 27 juin 2020
Effort: ModerateExperience EnhancementHelp Wanted
Métriques du dépôt
- Stars
- (48 455 stars)
- Métriques de merge PR
- (Merge moyen 6j 17h) (9 PRs mergées en 30 j)
Description
TypeScript Version: 3.7.x-dev.201xxxxx
Search Terms:
Code
// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
declare function h(v: (a: string) => void)
declare function vv (): void
/** @deprecated */
declare function vv (v: string): void
declare function vv (v?: string): void
h([|vv|])
Expected behavior: vvs is deprecated. Actual behavior: nothing. Playground Link:
Related Issues: