securityos/node_modules/@wapython/unionfs/lib/fs.d.ts

12 lines
1.3 KiB
TypeScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
/// <reference types="node" />
/// <reference types="node" />
import { Writable, Readable } from 'stream';
import * as fs from 'fs';
declare type FSMethods = 'renameSync' | 'ftruncateSync' | 'truncateSync' | 'chownSync' | 'fchownSync' | 'lchownSync' | 'chmodSync' | 'fchmodSync' | 'lchmodSync' | 'statSync' | 'lstatSync' | 'fstatSync' | 'linkSync' | 'symlinkSync' | 'readlinkSync' | 'realpathSync' | 'unlinkSync' | 'rmdirSync' | 'mkdirSync' | 'readdirSync' | 'closeSync' | 'openSync' | 'utimesSync' | 'futimesSync' | 'fsyncSync' | 'writeSync' | 'readSync' | 'readFileSync' | 'writeFileSync' | 'appendFileSync' | 'existsSync' | 'accessSync' | 'createReadStream' | 'createWriteStream' | 'watchFile' | 'unwatchFile' | 'watch' | 'rename' | 'ftruncate' | 'truncate' | 'chown' | 'fchown' | 'lchown' | 'chmod' | 'fchmod' | 'lchmod' | 'stat' | 'lstat' | 'fstat' | 'link' | 'symlink' | 'readlink' | 'realpath' | 'unlink' | 'rmdir' | 'mkdir' | 'readdir' | 'close' | 'open' | 'utimes' | 'futimes' | 'fsync' | 'write' | 'read' | 'readFile' | 'writeFile' | 'appendFile' | 'exists' | 'access';
declare type FS = Pick<typeof fs, FSMethods | 'promises'>;
export interface IFS extends FS {
WriteStream: typeof Writable | (new (...args: any[]) => Writable);
ReadStream: typeof Readable | (new (...args: any[]) => Readable);
}
export {};