Microsoft/TypeScript

Intellisense: deprioritise native function methods

Open

#61,426 建立於 2025年3月15日

在 GitHub 查看
 (2 留言) (2 反應) (1 負責人)TypeScript (6,726 fork)batch import
Experience EnhancementFix AvailableHelp WantedSuggestion

倉庫指標

Star
 (48,455 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 PR)

描述

🔍 Search Terms

native methods apply bind deprioritise autocomplete

✅ Viability Checklist

⭐ Suggestion

In autocomplete on a function, it would be great if TypeScript could prioritise extra methods/properties over the native ones.

📃 Motivating Example

Bun has some APIs that exist on a function, for example Bun.inspect() and also Bun.inspect.table. When typing Bun.inspect. the first few suggestions are more likely not as useful as the extra properties

Here I would have preferred for .custom and .table to be first in the list:

Image

💻 Use Cases

  1. What do you want to use this for?: Would make it easier for the developer to discover often more useful methods and properties
  2. What shortcomings exist with current approaches?: Extra methods/props are more difficult to see
  3. What workarounds are you using in the meantime?: N/A

I would be very happy to help implement this, with some guidance as to roughly where I should look to implement it! Cheers.

貢獻者指南