Skip to main content
Deno 2 is finally here 🎉️
Learn more

worker-types

Deno-compatible types for service workers and Cloudflare workers.

Usage: Cloudflare workers

If you are targeting the Cloudflare workers environment:

import 'https://deno.land/x/worker-types/cloudflare-worker-types.ts';

Usage: Service workers

If you are targeting service workers for use in the browser:

import 'https://deno.land/x/worker-types/service-worker-types.ts';