You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
It seems all typescript code are wrapped in a function and called and this leads to function declarations not to be globally available. How can I declare functions in typescript file globally?
For example :
index.ts function handleClick(){ }
index.html <div onclick="handleClick()"></div>
Here handleClick is not found, because it is wrapped in an outer function before calling
The text was updated successfully, but these errors were encountered:
It seems all typescript code are wrapped in a function and called and this leads to function declarations not to be globally available. How can I declare functions in typescript file globally?
For example :
Here handleClick is not found, because it is wrapped in an outer function before calling
The text was updated successfully, but these errors were encountered: