Skip to content

No autocompletion on type arguments #42531

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
williamluke4 opened this issue Jan 28, 2021 · 3 comments
Closed

No autocompletion on type arguments #42531

williamluke4 opened this issue Jan 28, 2021 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@williamluke4
Copy link

Bug Report

πŸ”Ž Search Terms

  • autocomplete type parameters
  • type argument autocompletion

πŸ•— Version & Regression Information

  • Occurs on both Nightly and Stable

⏯ Playground Link

Playground

Nightly Playground

πŸ’» Code

type UserArgs = {
    select?: {
        id?: boolean
        email?: boolean
    },
    include?: {
        posts?: boolean 
        likes?: boolean
    }
}
type UserGetPayload<T extends UserArgs> = T

const test:UserGetPayload<{
    // No Autocompletion
    
}> = {}

πŸ™ Actual behavior

image

πŸ™‚ Expected behavior

It should provide autocompletion using the type UserArgs

Related Issues

@DanielRosenwasser
Copy link
Member

Hm - I think this may be a duplicate of #33302. @andrewbranch did we do some work in a related area a while back? I know we've done this for string literals.

@andrewbranch
Copy link
Member

It reminds me of work we did on object literal (expression) member completions contextually typed by constrained type parameters, but this should be much easier to fix than that. It does look like an exact duplicate of #33302 to me.

@DanielRosenwasser DanielRosenwasser added the Duplicate An existing issue was already created label Jan 28, 2021
@williamluke4
Copy link
Author

Closing as it's a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants