0
I have a Typescript file that will be used in Service Worker, but by default, the scope/context/this
global and variable self
file will always reference to Window type, which is not what happens at runtime:
// [...]
self.clients.matchAll()
// [...]
Property 'clients' does not exist on type 'Window' . ts(2339)
How to set this issue during build not to occur and the IDE shows the right suggestions when typing self.<qualquer coisa>
?
I found this discussion on github maybe help you.
– Augusto Vasques