@@ -244,35 +244,10 @@ export interface FilePredicate<T> {
244244 ( path : Path , entry ?: Readonly < FileEntry > | null ) : T ;
245245}
246246
247- export declare class FileSystemCreateTree extends FileSystemTree {
248- constructor ( host : virtualFs . Host ) ;
249- }
250-
251- export declare class FileSystemDirEntry extends VirtualDirEntry {
252- protected _host : virtualFs . SyncDelegateHost < { } > ;
253- readonly parent : DirEntry | null ;
254- readonly subdirs : PathFragment [ ] ;
255- readonly subfiles : PathFragment [ ] ;
256- constructor ( _host : virtualFs . SyncDelegateHost < { } > , tree : FileSystemTree , path ?: Path ) ;
257- protected _createDir ( name : PathFragment ) : DirEntry ;
258- file ( name : PathFragment ) : FileEntry | null ;
259- }
260-
261247export declare class FileSystemSink extends HostSink {
262248 constructor ( dir : string , force ?: boolean ) ;
263249}
264250
265- export declare class FileSystemTree extends VirtualTree {
266- protected _host : virtualFs . SyncDelegateHost < { } > ;
267- protected _initialized : boolean ;
268- readonly tree : Map < Path , FileEntry > ;
269- constructor ( host : virtualFs . Host ) ;
270- protected _copyTo < T extends VirtualTree > ( tree : T ) : void ;
271- protected _recursiveFileList ( ) : Path [ ] ;
272- branch ( ) : Tree ;
273- get ( path : string ) : FileEntry | null ;
274- }
275-
276251export declare type FileVisitor = FilePredicate < void > ;
277252
278253export declare const FileVisitorCancelToken : symbol ;
@@ -634,60 +609,6 @@ export interface UpdateRecorder {
634609
635610export declare function url ( urlString : string ) : Source ;
636611
637- export declare class VirtualDirEntry implements DirEntry {
638- protected _path : Path ;
639- protected _subdirs : Map < PathFragment , DirEntry > ;
640- protected _tree : VirtualTree ;
641- readonly parent : DirEntry | null ;
642- readonly path : Path ;
643- readonly subdirs : PathFragment [ ] ;
644- readonly subfiles : PathFragment [ ] ;
645- constructor ( _tree : VirtualTree , _path ?: Path ) ;
646- protected _createDir ( name : PathFragment ) : DirEntry ;
647- dir ( name : PathFragment ) : DirEntry ;
648- file ( name : PathFragment ) : FileEntry | null ;
649- visit ( visitor : FileVisitor ) : void ;
650- }
651-
652- export declare class VirtualTree implements Tree {
653- protected _actions : ActionList ;
654- protected _cacheMap : Map < Path , FileEntry > ;
655- protected _root : VirtualDirEntry ;
656- protected _tree : Map < Path , FileEntry > ;
657- readonly actions : Action [ ] ;
658- readonly files : Path [ ] ;
659- readonly root : DirEntry ;
660- readonly staging : ReadonlyMap < Path , FileEntry > ;
661- protected readonly tree : ReadonlyMap < Path , FileEntry > ;
662- protected _copyTo < T extends VirtualTree > ( tree : T ) : void ;
663- protected _create ( path : Path , content : Buffer , action ?: Action ) : void ;
664- protected _delete ( path : Path , action ?: Action ) : void ;
665- protected _normalizePath ( path : string ) : Path ;
666- protected _overwrite ( path : Path , content : Buffer , action ?: Action ) : void ;
667- protected _rename ( path : Path , to : Path , action ?: Action , force ?: boolean ) : void ;
668- apply ( action : Action , strategy : MergeStrategy ) : void ;
669- beginUpdate ( path : string ) : UpdateRecorder ;
670- branch ( ) : Tree ;
671- commitUpdate ( record : UpdateRecorder ) : void ;
672- create ( path : string , content : Buffer | string ) : void ;
673- delete ( path : string ) : void ;
674- exists ( path : string ) : boolean ;
675- get ( path : string ) : FileEntry | null ;
676- getDir ( path : string ) : DirEntry ;
677- has ( path : string ) : boolean ;
678- merge ( other : Tree , strategy ?: MergeStrategy ) : void ;
679- optimize ( ) : void ;
680- overwrite ( path : string , content : Buffer | string ) : void ;
681- read ( path : string ) : Buffer | null ;
682- rename ( path : string , to : string ) : void ;
683- set ( entry : FileEntry ) : Map < Path , FileEntry > ;
684- visit ( visitor : FileVisitor ) : void ;
685- static branch ( tree : Tree ) : Tree ;
686- static isVirtualTree ( tree : Tree ) : tree is VirtualTree ;
687- static merge ( tree : Tree , other : Tree , strategy ?: MergeStrategy ) : Tree ;
688- static optimize ( tree : Tree ) : VirtualTree ;
689- }
690-
691612export declare function when ( predicate : FilePredicate < boolean > , operator : FileOperator ) : FileOperator ;
692613
693614export interface Workflow {
0 commit comments