We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
writeFile
contents
string
1 parent 8f3acbc commit 6a2b5ccCopy full SHA for 6a2b5cc
cli/index.d.ts
@@ -165,7 +165,7 @@ export interface APIOptions {
165
/** Reads a file from disk (or memory). */
166
readFile?: (filename: string, baseDir: string) => (string | null) | Promise<string | null>;
167
/** Writes a file to disk (or memory). */
168
- writeFile?: (filename: string, contents: Uint8Array, baseDir: string) => void | Promise<void>;
+ writeFile?: (filename: string, contents: Uint8Array | string, baseDir: string) => void | Promise<void>;
169
/** Lists all files within a directory. */
170
listFiles?: (dirname: string, baseDir: string) => (string[] | null) | Promise<string[] | null>;
171
/** Handler for diagnostic messages. */
0 commit comments