I have a TypeScript file named listeners.ts that defines event listeners like this:
export function TimeField_OnChange () {
// ...
}
There is an index.html in which I want to use this function like this (which doesn't work):
document.getElementById("timeFieldCheckBox").addEventListener("change", TimeField_OnChange);
The browsers JavaScript engine cannot find the function. How do I reference it correctly?