main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
665 bytes
|
Line | |
---|
1 | /// <reference types="node" />
|
---|
2 | import * as fs from 'fs';
|
---|
3 | import type { ErrnoException } from '../types';
|
---|
4 | export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void;
|
---|
5 | export declare type StatSynchronousMethod = (path: string) => fs.Stats;
|
---|
6 | export interface FileSystemAdapter {
|
---|
7 | lstat: StatAsynchronousMethod;
|
---|
8 | stat: StatAsynchronousMethod;
|
---|
9 | lstatSync: StatSynchronousMethod;
|
---|
10 | statSync: StatSynchronousMethod;
|
---|
11 | }
|
---|
12 | export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
|
---|
13 | export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.