-
Notifications
You must be signed in to change notification settings - Fork 490
Road to No Explicit Any Part 7: Scripts and Dialog Cleanup #8092
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
Changes from all commits
00141c4
7f0f030
5bcf9e7
7321c6e
c1d763a
ed1dd91
7712ada
66199d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -368,7 +368,7 @@ export class GroupNodeConfig { | |
| } | ||
|
|
||
| getNodeDef( | ||
| node: GroupNodeData | ||
| node: GroupNodeData | GroupNodeWorkflowData['nodes'][number] | ||
| ): GroupNodeDef | ComfyNodeDef | null | undefined { | ||
| if (node.type) { | ||
| const def = globalDefs[node.type] | ||
|
|
@@ -386,7 +386,8 @@ export class GroupNodeConfig { | |
| let type: string | number | null = linksFrom[0]?.[0]?.[5] ?? null | ||
| if (type === 'COMBO') { | ||
| // Use the array items | ||
| const source = node.outputs?.[0]?.widget?.name | ||
| const output = node.outputs?.[0] as GroupNodeOutput | undefined | ||
| const source = output?.widget?.name | ||
|
Comment on lines
+389
to
+390
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Type assertion is necessary due to Since Consider whether the 🤖 Prompt for AI Agents |
||
| const nodeIdx = linksFrom[0]?.[0]?.[2] | ||
| if (source && nodeIdx != null) { | ||
| const fromTypeName = this.nodeData.nodes[Number(nodeIdx)]?.type | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using type assertions isn't much safer than
any