may be nicer to just return `ts.version?` and let it be null. or does that not work?