You can use the following common interface types in your Worker code.
Important
Import statements are not allowed in the code, but you can use JavaScript natives.
Timing functions such as setTimeout
, setInterval
, or setImmediate
are part of the Node.js API, which is disabled in the Worker sandbox.