* Read the file at `path` as a string. * * `errors` controls how decode errors are handled — mirrors Python's * `open(..., errors=)` parameter: * - `'strict'` (default): throw on any invalid byte for the encoding * - `'replace'`: substitute each invalid byte with U+FFFD (REPLACEMENT C
(
path: string,
options?: { encoding?: BufferEncoding; errors?: 'strict' | 'replace' | 'ignore' },
)
| 69 | * - `'ignore'`: drop invalid bytes silently |
| 70 | */ |
| 71 | readText( |
| 72 | path: string, |
| 73 | options?: { encoding?: BufferEncoding; errors?: 'strict' | 'replace' | 'ignore' }, |
| 74 | ): Promise<string>; |
no outgoing calls