Was service worker syntax removed from @cloudflare/workers-types?

I'm updating an old worker that I haven't updated in a few years. I was going to move it to ESM until I realized it uses a library that doesn't support ESM so I'm keeping it as a service worker.

I updated @cloudflare/workers-types from 2.0.0 to the latest version and it seems the service worker format is no longer supported.

The documentation still has this example:
addEventListener('fetch', event => {
  event.respondWith(new Response('Hello'));
});

https://developers.cloudflare.com/workers/runtime-apis/fetch-event/#syntax-service-worker

But the event type is no longer resolving to the Cloudflare Event type with the latest version of @cloudflare/workers-types

Was support for service workers removed at some point?
Was this page helpful?