|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
878 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | import type * as fsStat from '@nodelib/fs.stat';
|
|---|
| 2 | import type { Dirent, ErrnoException } from '../types';
|
|---|
| 3 | export 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 | }
|
|---|
| 9 | export interface ReaddirSynchronousMethod {
|
|---|
| 10 | (filepath: string, options: {
|
|---|
| 11 | withFileTypes: true;
|
|---|
| 12 | }): Dirent[];
|
|---|
| 13 | (filepath: string): string[];
|
|---|
| 14 | }
|
|---|
| 15 | export declare type FileSystemAdapter = fsStat.FileSystemAdapter & {
|
|---|
| 16 | readdir: ReaddirAsynchronousMethod;
|
|---|
| 17 | readdirSync: ReaddirSynchronousMethod;
|
|---|
| 18 | };
|
|---|
| 19 | export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
|
|---|
| 20 | export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.