mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-12-01 22:14:45 +01:00
20 lines
878 B
TypeScript
20 lines
878 B
TypeScript
import type * as fsStat from '@nodelib/fs.stat';
|
|
import type { Dirent, ErrnoException } from '../types';
|
|
export interface ReaddirAsynchronousMethod {
|
|
(filepath: string, options: {
|
|
withFileTypes: true;
|
|
}, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
|
|
(filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
|
|
}
|
|
export interface ReaddirSynchronousMethod {
|
|
(filepath: string, options: {
|
|
withFileTypes: true;
|
|
}): Dirent[];
|
|
(filepath: string): string[];
|
|
}
|
|
export declare type FileSystemAdapter = fsStat.FileSystemAdapter & {
|
|
readdir: ReaddirAsynchronousMethod;
|
|
readdirSync: ReaddirSynchronousMethod;
|
|
};
|
|
export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
|
|
export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
|