Skip to content
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

Missing reference occurrence for property in object literal #189

Open
olafurpg opened this issue Oct 19, 2022 · 0 comments
Open

Missing reference occurrence for property in object literal #189

olafurpg opened this issue Oct 19, 2022 · 0 comments

Comments

@olafurpg
Copy link
Member

Following up from @varungandhi-src in https://github.com/sourcegraph/scip-typescript/pull/185/files#r998840389

export function foo(): Promise<{ member: number }> {
  return Promise.resolve({ member: 42 })
//                         ^^^^^^ should ideally be a reference to the structural type
}

This doesn't work with tsserver so it's not a high priority to get it working with scip-typescript, but it would be nice if it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants