UNPKG

530 BTypeScriptView Raw
1/// <reference types="node" />
2import type * as fs from 'fs';
3export interface Entry {
4 dirent: Dirent;
5 name: string;
6 path: string;
7 stats?: Stats;
8}
9export declare type Stats = fs.Stats;
10export declare type ErrnoException = NodeJS.ErrnoException;
11export interface Dirent {
12 isBlockDevice: () => boolean;
13 isCharacterDevice: () => boolean;
14 isDirectory: () => boolean;
15 isFIFO: () => boolean;
16 isFile: () => boolean;
17 isSocket: () => boolean;
18 isSymbolicLink: () => boolean;
19 name: string;
20}