We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
TypeScript Version: 3.9.2
Search Terms: Annotate with type from JSDocs, JSDocs, @template, multiple @template values, line breaks between generics
Expected behavior: Generates a comma and a space between generics when click on "Annotate with type from JSDocs" and has multiple @template values.
/** * @typedef Either * @template L, R */ /** * @param {function(R): boolean} predicate * @param {function(R): L} onLeft * @returns {function(R): Either.<L, R>} * @template L, R */ function fromPredicate<L, R>(predicate: (arg0: R) => boolean, onLeft: (arg0: R) => L): (arg0: R) => Either<L,R> {}
Actual behavior: Generates a line break between generics when click on "Annotate with type from JSDocs" and has multiple @template values.
/** * @typedef Either * @template L, R */ /** * @param {function(R): boolean} predicate * @param {function(R): L} onLeft * @returns {function(R): Either.<L, R>} * @template L, R */ function fromPredicate<L R>(predicate: (arg0: R) => boolean, onLeft: (arg0: R) => L): (arg0: R) => Either<L,R> {}
Related Issues: I coudn't find a similar issue.
Code
/** * @typedef Either * @template L, R */ /** * @param {function(R): boolean} predicate * @param {function(R): L} onLeft * @returns {function(R): Either.<L, R>} * @template L, R */ function fromPredicate(predicate, onLeft) {}
"use strict"; /** * @typedef Either * @template L, R */ /** * @param {function(R): boolean} predicate * @param {function(R): L} onLeft * @returns {function(R): Either.<L, R>} * @template L, R */ function fromPredicate(predicate, onLeft) { }
{ "compilerOptions": { "noImplicitAny": true, "strictNullChecks": true, "strictFunctionTypes": true, "strictPropertyInitialization": true, "strictBindCallApply": true, "noImplicitThis": true, "noImplicitReturns": true, "alwaysStrict": true, "esModuleInterop": true, "declaration": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, "moduleResolution": 2, "target": "ES2017", "jsx": "React", "module": "ESNext" } }
Playground Link: Provided
The text was updated successfully, but these errors were encountered:
Thanks @a-tarasyuk!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 3.9.2
Search Terms:
Annotate with type from JSDocs, JSDocs, @template, multiple @template values, line breaks between generics
Expected behavior:
Generates a comma and a space between generics when click on "Annotate with type from JSDocs" and has multiple @template values.
Actual behavior:
Generates a line break between generics when click on "Annotate with type from JSDocs" and has multiple @template values.
Related Issues:
I coudn't find a similar issue.
Code
Output
Compiler Options
Playground Link: Provided
The text was updated successfully, but these errors were encountered: