Skip to content

chore: update dependencies #510

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

Merged
merged 1 commit into from
Jun 24, 2025
Merged

Conversation

akudev
Copy link
Member

@akudev akudev commented Jun 24, 2025

No description provided.

@akudev akudev merged commit a93ca22 into main Jun 24, 2025
7 checks passed
@akudev akudev deleted the fix/functionTypedefPropertyParams branch June 24, 2025 09:21
@@ -255,10 +255,10 @@ function genModule(ast: Module) {
text += `declare module "${ast.name}" {` + NL;
text += APPEND_ITEMS(ast.imports, genImport);
text += APPEND_ITEMS(ast.exports, genExport);
(text += APPEND_ITEMS(ast.namespaces, (namespace: Namespace) =>
((text += APPEND_ITEMS(ast.namespaces, (namespace: Namespace) =>
genNamespace(namespace, { export: namespace.export }),
)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks strange. Shouldn't the comma at the end of line 260 rather be a semicolon? I see no reason why this should be a sequence...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't change the behavior and was like this before, but you are right. I'll fix it to make the code more readable.

@@ -46,13 +46,13 @@ export function createJSDocCenterPart(info: APIMember, lines: string[] = []) {
lines.push("");
}

info.since ? lines.push("@since " + info.since) : "",
(info.since ? lines.push("@since " + info.since) : "",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, also looks strange. Semicolon?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same. The third part of the ternary statements (empty string) also makes no sense

Copy link
Member

@codeworrior codeworrior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some doubts ;-)

@@ -202,8 +202,8 @@ function generateSettingsInterface(
propertySignature,
buildJSDocStringFromLines(createJSDocCenterPart(association)),
);
factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword),
interfaceProperties.push(propertySignature);
(factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my biggest doubts are about this one. The others work as intended despite the comma, but here line 205 does create a node which is never used

@akudev akudev mentioned this pull request Jun 25, 2025
@akudev
Copy link
Member Author

akudev commented Jun 25, 2025

Seems like prettier uncovered some syntactic Murks. See #511

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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy