[TS] Use strict mode in LLink & Reroute (#602)

- Adds fallback colour if reroute colour is somehow nullish
This commit is contained in:
filtered
2025-02-26 05:00:33 +11:00
committed by GitHub
parent 4636367de2
commit f39e1d96e8
4 changed files with 27 additions and 18 deletions

View File

@@ -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