Microsoft/TypeScript

Deprecated should support contextual type with signature resolution

Open

#39,296 建立於 2020年6月27日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)TypeScript (6,726 fork)batch import
Effort: ModerateExperience EnhancementHelp Wanted

倉庫指標

Star
 (48,455 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 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:

貢獻者指南