Microsoft/TypeScript
GitHub で見るDeprecated should support contextual type with signature resolution
Open
#39,296 opened on 2020年6月27日
Effort: ModerateExperience EnhancementHelp Wanted
Repository metrics
- Stars
- (48,455 stars)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 9 merged PRs)
説明
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: