UNPKG

rename-overwrite

Version:

Like `fs.rename` but overwrites existing file or directory

8 lines (5 loc) 205 B
export = renameOverwrite declare function renameOverwrite (oldPath: string, newPath: string): Promise<void> declare namespace renameOverwrite { function sync (oldPath: string, newPath: string): void }