microsoft/TypeScript (original) (raw)

Suggestion

https://github.com/tc39/proposal-private-fields-in-in is stage 3 now.

🔍 Search Terms

esnext. private field. class

List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.

✅ Viability Checklist

My suggestion meets these guidelines:

⭐ Suggestion

📃 Motivating Example

class C { #brand = 42;

static isC(obj: C) { return #brand in obj; // should work } }

💻 Use Cases