(...events: string[])
| 291 | } |
| 292 | |
| 293 | function assertContextEvent(...events: string[]) { |
| 294 | const context = useContext() |
| 295 | if (!events.includes(context.eventName)) { |
| 296 | throw new Error(`Unsupported event type: ${context.eventName}`) |
| 297 | } |
| 298 | return context |
| 299 | } |
| 300 | |
| 301 | function useEnvModel() { |
| 302 | const value = process.env["MODEL"] |