module: do not attempt to strip type when there's no source
It bothers me that tsParse
would return an empty string on non-string input, IMO it makes much more sense to use an assertion instead, and make sure the other parts of the code calling that function have already validated the input.