mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 16:40:05 +00:00
[TS] Use strict mode in LLink & Reroute (#602)
- Adds fallback colour if reroute colour is somehow nullish
This commit is contained in:
@@ -815,7 +815,7 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
|
||||
* @param slot
|
||||
* @param data
|
||||
*/
|
||||
setOutputData(slot: number, data: unknown): void {
|
||||
setOutputData(slot: number, data: number | string | boolean | { toToolTip?(): string }): void {
|
||||
if (!this.outputs) return
|
||||
|
||||
// this maybe slow and a niche case
|
||||
|
||||
Reference in New Issue
Block a user