mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-24 16:29:45 +00:00
[Doc] Add JSDoc linter & general comment clean up (#611)
- Prefer comments above lines over end-of-line comments - Makes auto-formatting easier - Subjective, but it is generally easier to read in JS - Standardises JSdoc format - Auto-fixes for many issues (applies on save w/ESLint extension)
This commit is contained in:
@@ -55,7 +55,7 @@ export function toNodeSlotClass(slot: INodeSlot): NodeSlot {
|
||||
|
||||
/**
|
||||
* Whether this slot is an input slot and attached to a widget.
|
||||
* @param slot - The slot to check.
|
||||
* @param slot The slot to check.
|
||||
*/
|
||||
export function isWidgetInputSlot(slot: INodeSlot): slot is IWidgetInputSlot {
|
||||
return isINodeInputSlot(slot) && !!slot.widget
|
||||
@@ -84,7 +84,7 @@ export abstract class NodeSlot implements INodeSlot {
|
||||
|
||||
/**
|
||||
* Whether this slot is a valid target for a dragging link.
|
||||
* @param link - The link to check against.
|
||||
* @param link The link to check against.
|
||||
*/
|
||||
abstract isValidTarget(link: ConnectingLink | null): boolean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user