UNPKG

memfs

Version:

In-memory file-system with Node's fs API.

20 lines (19 loc) 650 B
import type { IDirent, TDataOut } from '../node/types/misc'; export declare class FsaNodeDirent implements IDirent { readonly name: TDataOut; readonly parentPath: string; protected readonly kind: 'file' | 'directory'; /** * @deprecated Will be removed at any time. * @see https://nodejs.org/api/deprecations.html#DEP0178 */ path: string; constructor(name: TDataOut, parentPath: string, kind: 'file' | 'directory'); isDirectory(): boolean; isFile(): boolean; isBlockDevice(): boolean; isCharacterDevice(): boolean; isSymbolicLink(): boolean; isFIFO(): boolean; isSocket(): boolean; }