This commit is contained in:
harttle
2019-02-19 23:55:38 +08:00
parent cbebb00ef1
commit 29f53304bc
70 changed files with 3162 additions and 2565 deletions
+3
View File
@@ -0,0 +1,3 @@
import IFS from './ifs';
declare const _default: IFS;
export default _default;
+5
View File
@@ -0,0 +1,5 @@
export default interface IFS {
exists: (filepath?: string) => Promise<boolean>;
readFile: (filepath: string) => Promise<string>;
resolve: (root: string, file: string, ext: string) => string;
}
+3
View File
@@ -0,0 +1,3 @@
import IFS from './ifs';
declare const fs: IFS;
export default fs;