UNPKG

dirent-from-stats

Version:

Create fs.Dirents from fs.Stats for compatiblity on earlier versions of Node.js

25 lines (24 loc) 656 B
declare const Base: any; import type { DirentStats } from './types.ts'; export default class DirentFromStats extends Base { static constants: { UV_DIRENT_UNKNOWN: any; UV_DIRENT_FILE: any; UV_DIRENT_TEST_DIR: any; UV_DIRENT_LINK: any; UV_DIRENT_FIFO: any; UV_DIRENT_SOCKET: any; UV_DIRENT_CHAR: any; UV_DIRENT_BLOCK: any; }; static DirentStats: any; constructor(name: string, stats: DirentStats); isDirectory(): any; isFile(): any; isBlockDevice(): any; isCharacterDevice(): any; isSymbolicLink(): any; isFIFO(): any; isSocket(): any; } export {};