I thought this would be much easier but obviously I missing something.
I have a reference to a javascript file in my html e.g.
<script src="myfile.js?k=123456"></script>
With typescript I want to pull the k query string value and use it when processing in my typescript/javascript. How can I do this?