type errors

This commit is contained in:
Dax Raad
2025-11-05 20:14:31 -05:00
parent 247ce44776
commit 6555a33eff
2 changed files with 5 additions and 3 deletions

View File

@@ -65,9 +65,10 @@ export namespace Log {
const logfile = Bun.file(logpath)
await fs.truncate(logpath).catch(() => {})
const writer = logfile.writer()
write = (msg: any) => {
writer.write(msg)
write = async (msg: any) => {
const num = writer.write(msg)
writer.flush()
return num
}
}