-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix: not working for multi line union types #17
Conversation
Good stuff. Thanks. |
release: 0.2.9 31ba3e4 |
Hey! I've run into an issue with this change. Once the @type is formatted this way (no symbols after |
Can I see your code? |
/**
* @type {
* | ((
* foo: Foo,
* bar: Bar,
* baz: Baz,
* qux: Qux,
* ) => void)
* | undefined}
*/
let orderMocked;
/** @type {(mockOrdering: typeof orderMocked) => void} */
const mockOrdering = (mockOrdering) => {};
/** @type {Parameters<typeof mockOrdering>[0]} */
const handleOrdering = (
foo,
bar,
baz,
qux
) => {} Maybe it's a bug in TypeScript, but if there's a newline after |
Yes you are right. I saw that bug, I think this change should be reverted. But I need to know what @danielpza think. |
agree (with the revert). |
This reverts commit fee81f6.
This reverts commit fee81f6.
This reverts commit fee81f6.
closes #16