UNPKG

338 BTypeScriptView Raw
1import type * as fs from 'node:fs';
2export interface Entry {
3 dirent: Dirent;
4 name: string;
5 path: string;
6 stats?: Stats;
7}
8export type Dirent = fs.Dirent;
9export type Stats = fs.Stats;
10export type ErrnoException = NodeJS.ErrnoException;
11export type AsyncCallback = (error: ErrnoException | null, entries: Entry[]) => void;