mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 13:10:24 +00:00
[TS] Use strict mode in LGraph (#579)
* [TS] Undefined is not a valid object key * Deprecate unused code Adds ts-expect-error to TS strict issues on unmaintained public interfaces. * [TS] Fix nullability: asSerialisable return type * nit - Remove outdated comment * [TS] Strict mode: LGraph - Adds minor coercion changes; would need extremely specific hacks performed to result in runtime change * [TMP] Work around typescript-strict-plugin Must be reverted once plugin removed. See #578
This commit is contained in:
@@ -465,7 +465,7 @@ export class LGraphCanvas implements ConnectionColorContext {
|
||||
node_in_panel?: LGraphNode
|
||||
last_mouse: ReadOnlyPoint = [0, 0]
|
||||
last_mouseclick: number = 0
|
||||
graph!: LGraph
|
||||
graph!: LGraph | null
|
||||
canvas: HTMLCanvasElement
|
||||
bgcanvas: HTMLCanvasElement
|
||||
ctx?: CanvasRenderingContext2D
|
||||
|
||||
Reference in New Issue
Block a user