(code: string)
| 30 | |
| 31 | /** the editor's code as a function body, arktype's exports being globals */ |
| 32 | export const isolate = (code: string): string => |
| 33 | code.replace(importDeclaration, "").replace(/^\s*export\s+const/gm, "const") |
| 34 | |
| 35 | /** runs isolated code, returning the values of the names it declares */ |
| 36 | export const evaluate = ( |
no test coverage detected