Skip to content

Add missing properties for satisfies #60312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
6 tasks done
golopot opened this issue Oct 22, 2024 · 0 comments Β· Fixed by #60314
Closed
6 tasks done

Add missing properties for satisfies #60312

golopot opened this issue Oct 22, 2024 · 0 comments Β· Fixed by #60314
Labels
Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Milestone

Comments

@golopot
Copy link

golopot commented Oct 22, 2024

πŸ” Search Terms

"refactor", "code action", "add missing properties", "satisfies"

βœ… Viability Checklist

⭐ Suggestion

Implement "add missing properties" refactor for satisfies expression.

πŸ“ƒ Motivating Example

type T = { t: string }
const b = {} satisfies T
// expecting the "add missing properties" refactor to be avaiable

Playground Link

πŸ’» Use Cases

  1. What do you want to use this for? Better DX
  2. What shortcomings exist with current approaches? manual input
  3. What workarounds are you using in the meantime? manual input
@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Experience Enhancement Noncontroversial enhancements labels Oct 30, 2024
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants