We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
writeFile
contents
string
1 parent 22ea45c commit 77aad42Copy full SHA for 77aad42
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