I have a web worker that has the two following lines in it:
// Doesn't think importScripts exists
self.importScripts('/myScript.js')
// Thinks that postMessage is missing 1-2 extra arguments
self.postMessage(imgdata)
The code works fine, but the editor thinks that the two items belong on the Window object so it throws errors.
Is there a way to typedoc this or is there something else that I can do so it knows that this file is a web worker?