Microsoft/TypeScript

Deprecated should support contextual type with signature resolution

Open

#39.296 aperta il 27 giu 2020

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (6726 fork)batch import
Effort: ModerateExperience EnhancementHelp Wanted

Metriche repository

Star
 (48.455 star)
Metriche merge PR
 (Merge medio 6g 17h) (9 PR mergiate in 30 g)

Descrizione

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:

Guida contributor