Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ericselin/worker-types
- Owner: ericselin
- License: mit
- Created: 2021-02-26T10:15:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-09T12:01:28.000Z (almost 4 years ago)
- Last Synced: 2024-11-28T22:30:07.238Z (2 months ago)
- Language: TypeScript
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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';
```