(
path: string,
options?: { extractImages?: boolean },
)
| 10 | } |
| 11 | |
| 12 | export async function readFile( |
| 13 | path: string, |
| 14 | options?: { extractImages?: boolean }, |
| 15 | ): Promise<string> { |
| 16 | return invoke<string>("read_file", { |
| 17 | path, |
| 18 | extractImages: options?.extractImages, |
| 19 | }) |
| 20 | } |
| 21 | |
| 22 | export async function writeFile(path: string, contents: string): Promise<void> { |
| 23 | assertAbsoluteFsPath("writeFile", path) |
no outgoing calls
no test coverage detected