UNPKG

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