Skip to content

Instantly share code, notes, and snippets.

@mizchi
Created July 19, 2023 12:01
Show Gist options
  • Save mizchi/6ad018191a4ea20d49e488ee1cee0b84 to your computer and use it in GitHub Desktop.
Save mizchi/6ad018191a4ea20d49e488ee1cee0b84 to your computer and use it in GitHub Desktop.
sized-worker.
import * as ts from "typescript";
export interface Env {}
export default {
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
const num = ts.SyntaxKind.Identifier;
// const num = 80;
return new Response(`${num}`);
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment