Skip to content

Conversation

@itrapashko
Copy link

@itrapashko itrapashko commented Nov 20, 2025

Fixes #1685

After adding NoInfer to types of parameters, several compilation errors appeared in the Connection interface in the methods that register request handlers for DocumentLinkResolve, DocumentColor, and ColorPresentation. The reason for them is that the return type of the request specified in those methods did not match the return type specified in the corresponding type variables and in the protocol specification. The return type does not allow null and undefined, so I removed those from the types.

@itrapashko
Copy link
Author

@microsoft-github-policy-service agree

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using NoInfer for better typing

1 participant