Skip to content
File

Blob: samples/helloworld-ts/worker.ts

typescript10 lines
1// Copyright (c) 2017-2023 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4 
5export default {
6 async fetch(request, env, ctx): Promise<Response> {
7 return new Response('Hello World from Typescript!');
8 },
9} satisfies ExportedHandler<Env>;