source: trip-planner-front/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 878 bytes
Line 
1import type * as fsStat from '@nodelib/fs.stat';
2import type { Dirent, ErrnoException } from '../types';
3export interface ReaddirAsynchronousMethod {
4 (filepath: string, options: {
5 withFileTypes: true;
6 }, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
7 (filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
8}
9export interface ReaddirSynchronousMethod {
10 (filepath: string, options: {
11 withFileTypes: true;
12 }): Dirent[];
13 (filepath: string): string[];
14}
15export declare type FileSystemAdapter = fsStat.FileSystemAdapter & {
16 readdir: ReaddirAsynchronousMethod;
17 readdirSync: ReaddirSynchronousMethod;
18};
19export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
20export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
Note: See TracBrowser for help on using the repository browser.