(runtime?: string)
| 170 | } |
| 171 | |
| 172 | export function isEdgeRuntime(runtime?: string): runtime is EdgeRuntimes { |
| 173 | return ( |
| 174 | runtime !== undefined && |
| 175 | Object.values(EdgeRuntimes).includes(runtime as EdgeRuntimes) |
| 176 | ); |
| 177 | } |
| 178 | |
| 179 | const ALLOWED_RUNTIMES: string[] = [...Object.values(EdgeRuntimes), 'nodejs']; |
| 180 |