* Tianji Worker Example * * This is a simple example worker that handles HTTP requests. * You can modify this to suit your needs. * * Note: The fetch function will be directly exposed after build. * Do not use export/import syntax, write plain functions.
| 9 | */ |
| 10 | |
| 11 | interface RequestPayload { |
| 12 | [key: string]: any; |
| 13 | } |
| 14 | |
| 15 | interface RequestContext { |
| 16 | type: 'http' | 'cron'; |
nothing calls this directly
no outgoing calls
no test coverage detected