udacity / cloudflare-typescript-workers

Types and mocks for building a tested Typescript Cloudflare Worker, generates three NPM packages
Apache License 2.0
139 stars 12 forks source link

feat: Add support for event.passThroughOnException #8

Closed perangel closed 4 years ago

perangel commented 4 years ago

Adds an new CloudflareWorkerFetchEvent interface which extends the lib.webworker.ts FetchEvent.

It adds support for PassthroughOnException() which allows a worker to "fail open".

see: https://developers.cloudflare.com/workers/reference/apis/fetch-event/