Microsoft/TypeScript

Deprecated should support contextual type with signature resolution

开放

#39,296 创建于 2020年6月27日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (13,395 个派生)batch import
Effort: ModerateExperience EnhancementHelp Wanted

仓库指标

星标
 (108,860 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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:

贡献者指南