mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
[CodeHealth] Apply modern standards to LGraphCanvas (#650)
- Prefer template string - Prefer explicit throw to undefined TypeError - Remove unnecessary `this` assignment
This commit is contained in:
@@ -9,7 +9,7 @@ import type {
|
||||
} from "../interfaces"
|
||||
import type { LGraph, LGraphState } from "../LGraph"
|
||||
import type { IGraphGroupFlags, LGraphGroup } from "../LGraphGroup"
|
||||
import type { LGraphNode, NodeId } from "../LGraphNode"
|
||||
import type { LGraphNode, NodeId, NodeProperty } from "../LGraphNode"
|
||||
import type { LiteGraph } from "../litegraph"
|
||||
import type { LinkId, LLink } from "../LLink"
|
||||
import type { RerouteId } from "../Reroute"
|
||||
@@ -57,7 +57,7 @@ export interface ISerialisedNode {
|
||||
mode?: number
|
||||
outputs?: ISerialisedNodeOutputSlot[]
|
||||
inputs?: ISerialisedNodeInputSlot[]
|
||||
properties?: Dictionary<unknown>
|
||||
properties?: Dictionary<NodeProperty | undefined>
|
||||
shape?: RenderShape
|
||||
boxcolor?: string
|
||||
color?: string
|
||||
|
||||
Reference in New Issue
Block a user