Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ericselin/worker-types

Deno-compatible types for service workers and Cloudflare workers
https://github.com/ericselin/worker-types

Last synced: 15 days ago
JSON representation

Deno-compatible types for service workers and Cloudflare workers

Awesome Lists containing this project

README

        

# worker-types

Deno-compatible types for service workers and Cloudflare workers.

## Usage: Cloudflare workers

If you are targeting the [Cloudflare workers](https://workers.cloudflare.com/) environment:

```ts
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:

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