-
-
Notifications
You must be signed in to change notification settings - Fork 830
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
Incorrect Typescript Indentation for Generic Functions Call #5764
Labels
bug
Something isn't working
Comments
The indentation is correct if I remove the generic function applyF(arg: any, f: Function): any {
return f(arg);
}
applyF({ body: 'hello'}, () => {
∣
}) This also is correct function applyF<T>(arg: T, f: Function): T {
return f(arg);
}
type Arg = {
body: string
}
applyF<Arg>({ body: 'hello'}, () => {
∣
}) |
encountered and is messed aroudn with it. Will try to improve Edit: Don't expect much progress on this before Christmas 🙇 as there are more important things for me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The indentation of generic function call is not correct.
To Reproduce
applyF
argument function body. It will result in the following output:Expected behavior
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
No response
The text was updated successfully, but these errors were encountered: