Skip to content

Commit

Permalink
chore(types): update types for writes
Browse files Browse the repository at this point in the history
  • Loading branch information
adorade committed Oct 1, 2024
1 parent 0ac854e commit 47aec84
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion types/writer.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@
* @param {string} content - The text content to write to the file
* @returns {Promise<void>} A promise that resolves when the file is written
*/
export default function writeOutputLog(filePath: string, content: string): Promise<void>;
export function writeOutputLog(filePath: string, content: string): Promise<void>;
/**
* Overwrites the source file with the given content.
*
* @param {string} file - The source file
* @param {string} content - The content to overwrite the source with
* @returns {Promise<void>} A promise that resolves when the file is overwritten
*/
export function overwriteSource(file: string, content: string): Promise<void>;

0 comments on commit 47aec84

Please sign in to comment.