| LCOV - code coverage report | ||||||||||||||||||
|
||||||||||||||||||
Line data Source code 1 : import type { IBaseWidget, INumericWidget } from '@comfyorg/graph-model/widgets' 2 : 3 : /** Finds the numeric widget with the given name. */ 4 42 : export function findNumericWidget( 5 : widgets: IBaseWidget[] | undefined, 6 : name: string 7 : ): INumericWidget | undefined { 8 42 : return widgets?.find( 9 : (w): w is INumericWidget => w.name === name && w.type === 'number' 10 : ) 11 : } |
| Generated by: LCOV version 2.0-1 |