Ingvar Stepanyan @rreverser.com · 02/03/2026I guess you could declare a dummy function justForTypecheck() { return ...run however complicated code you want... } and use its typeof? Still very ugly, but gives you more flexibility, and any minifier will DCE unused function anyway. 120