mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
add JSDoc comments for FileWriter methods and promises
GitOrigin-RevId: a7b2229b12973a8ebf4a1d6b94159efbd63df02a
This commit is contained in:
committed by
Copybot
parent
d396c6d722
commit
ecda482213
@@ -51,6 +51,21 @@ export class SizeLimitedStream extends Transform {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {{
|
||||||
|
* ensureDumpFolderExists: () => void,
|
||||||
|
* writeLinesToDisk: (identifier: any, lines: any, callback?: any) => void,
|
||||||
|
* writeContentToDisk: (identifier: any, content: any, callback?: any) => void,
|
||||||
|
* writeStreamToDisk: (identifier: any, stream: any, options?: any, callback?: any) => void,
|
||||||
|
* writeUrlToDisk: (identifier: any, url: any, options?: any, callback?: any) => void,
|
||||||
|
* promises: {
|
||||||
|
* writeLinesToDisk: (identifier: any, lines: any) => Promise<string>,
|
||||||
|
* writeContentToDisk: (identifier: any, content: any) => Promise<string>,
|
||||||
|
* writeStreamToDisk: (identifier: any, stream: any, options?: any) => Promise<string>,
|
||||||
|
* writeUrlToDisk: (identifier: any, url: any, options?: any) => Promise<string>,
|
||||||
|
* },
|
||||||
|
* }}
|
||||||
|
*/
|
||||||
const FileWriter = {
|
const FileWriter = {
|
||||||
ensureDumpFolderExists() {
|
ensureDumpFolderExists() {
|
||||||
fs.mkdirSync(Settings.path.dumpFolder, { recursive: true })
|
fs.mkdirSync(Settings.path.dumpFolder, { recursive: true })
|
||||||
|
|||||||
Reference in New Issue
Block a user