Is there any npm package to fulfil missing tvml js imports while using webpack?

I was wondering if there is any npm module for tvml js which we can use to import functions like: 'userDefaults', 'getAdvetisementId' for linting purposes?


Thanks

Replies

You shouldn’t need to import them because they are available in the global namespace. Can you clarify what errors you’re getting?

What I meant was, when we use a linter like eslint, it does not recognise these global functions because they're only loaded after the app is launched. So I was checking to see if there was a package for such purpose.
Anyways, I was able to solve the lint errors by adding all the known undefs in .eslintrc globals array.

That is what I have done as well.