The input if the parameters are valid, throws if they are invalid
try { generatorParameters({ w: checkParameters([0.40255]) });} catch (e: any) { alert(e);} Copy
try { generatorParameters({ w: checkParameters([0.40255]) });} catch (e: any) { alert(e);}
Example