mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-22 02:11:53 +02:00
18 lines
829 B
TypeScript
18 lines
829 B
TypeScript
import fs from 'fs';
|
|
export type FsError = Error & {
|
|
code?: string;
|
|
path?: string;
|
|
};
|
|
export { chmodSync, mkdirSync, readdirSync, renameSync, rmdirSync, rmSync, statSync, unlinkSync, } from 'fs';
|
|
export declare const promises: {
|
|
chmod: (path: fs.PathLike, mode: fs.Mode) => Promise<void>;
|
|
mkdir: (path: fs.PathLike, options?: fs.Mode | (fs.MakeDirectoryOptions & {
|
|
recursive?: boolean | null;
|
|
}) | undefined | null) => Promise<string | undefined>;
|
|
readdir: (path: fs.PathLike) => Promise<string[]>;
|
|
rename: (oldPath: fs.PathLike, newPath: fs.PathLike) => Promise<void>;
|
|
rm: (path: fs.PathLike, options: fs.RmOptions) => Promise<void>;
|
|
rmdir: (path: fs.PathLike) => Promise<void>;
|
|
stat: (path: fs.PathLike) => Promise<fs.Stats>;
|
|
unlink: (path: fs.PathLike) => Promise<void>;
|
|
};
|