(operation: string, path: string)
| 142 | } |
| 143 | |
| 144 | function assertAbsoluteFsPath(operation: string, path: string): void { |
| 145 | if (!isAbsolutePath(path)) { |
| 146 | throw new Error(`${operation} requires an absolute path: ${path}`) |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | /** Mirror of `commands::fs::FileBase64` (Rust side). */ |
| 151 | export interface FileBase64 { |
no test coverage detected