source: trip-planner-front/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 665 bytes
Line 
1/// <reference types="node" />
2import * as fs from 'fs';
3import type { ErrnoException } from '../types';
4export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void;
5export declare type StatSynchronousMethod = (path: string) => fs.Stats;
6export interface FileSystemAdapter {
7 lstat: StatAsynchronousMethod;
8 stat: StatAsynchronousMethod;
9 lstatSync: StatSynchronousMethod;
10 statSync: StatSynchronousMethod;
11}
12export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
13export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
Note: See TracBrowser for help on using the repository browser.