1import { fs1Promises as fsPromises } from './fsPromisesF.mts'2import type { absFileDirPath } from '../../ptDirF.mts'3import { throwIf } from '../../sharedF/throwErrorF/throwIfF.mts'4import { assertString } from '../../sharedF/assertsF/assertStringF.mts'6export const write1File = async (path : absFileDirPath, data : string | Buffer) => {7 assertString(path)9 return await fsPromises.writeFile(path, data)10}