@@ -1223,71 +1223,76 @@ interface TemplateTag<R = string> {
12231223 (template : TemplateStringsArray , ... substitutions : any []): R ;
12241224}
12251225
1226- // @public (undocumented)
1227- namespace test {
1228- // (undocumented)
1229- class TestHost extends SimpleMemoryHost {
1230- // (undocumented)
1231- $exists(path : string ): boolean ;
1232- // (undocumented)
1233- $isDirectory(path : string ): boolean ;
1234- // (undocumented)
1235- $isFile(path : string ): boolean ;
1236- // (undocumented)
1237- $list(path : string ): PathFragment [];
1238- // (undocumented)
1239- $read(path : string ): string ;
1240- // (undocumented)
1241- $write(path : string , content : string ): void ;
1242- constructor (map ? : {
1243- [path : string ]: string ;
1244- });
1245- // (undocumented)
1246- clearRecords(): void ;
1247- // (undocumented)
1248- clone(): TestHost ;
1249- // (undocumented)
1250- protected _delete(path : Path ): void ;
1251- // (undocumented)
1252- protected _exists(path : Path ): boolean ;
1253- // (undocumented)
1254- get files(): Path [];
1255- // (undocumented)
1256- protected _isDirectory(path : Path ): boolean ;
1257- // (undocumented)
1258- protected _isFile(path : Path ): boolean ;
1259- // (undocumented)
1260- protected _list(path : Path ): PathFragment [];
1261- // (undocumented)
1262- protected _read(path : Path ): ArrayBuffer ;
1263- // (undocumented)
1264- get records(): TestLogRecord [];
1265- // (undocumented)
1266- protected _records: TestLogRecord [];
1267- // (undocumented)
1268- protected _rename(from : Path , to : Path ): void ;
1269- // (undocumented)
1270- protected _stat(path : Path ): Stats <SimpleMemoryHostStats > | null ;
1271- // (undocumented)
1272- get sync(): SyncDelegateHost <{}>;
1273- // (undocumented)
1274- protected _sync: SyncDelegateHost <{}> | null ;
1275- // (undocumented)
1276- protected _watch(path : Path , options ? : HostWatchOptions ): Observable <HostWatchEvent >;
1277- // (undocumented)
1278- protected _write(path : Path , content : FileBuffer ): void ;
1226+ declare namespace test {
1227+ export {
1228+ TestLogRecord ,
1229+ TestHost
12791230 }
1231+ }
1232+
1233+ // @public (undocumented)
1234+ class TestHost extends SimpleMemoryHost {
12801235 // (undocumented)
1281- type TestLogRecord = {
1282- kind: ' write' | ' read' | ' delete' | ' list' | ' exists' | ' isDirectory' | ' isFile' | ' stat' | ' watch' ;
1283- path: Path ;
1284- } | {
1285- kind: ' rename' ;
1286- from: Path ;
1287- to: Path ;
1288- };
1236+ $exists(path : string ): boolean ;
1237+ // (undocumented)
1238+ $isDirectory(path : string ): boolean ;
1239+ // (undocumented)
1240+ $isFile(path : string ): boolean ;
1241+ // (undocumented)
1242+ $list(path : string ): PathFragment [];
1243+ // (undocumented)
1244+ $read(path : string ): string ;
1245+ // (undocumented)
1246+ $write(path : string , content : string ): void ;
1247+ constructor (map ? : {
1248+ [path : string ]: string ;
1249+ });
1250+ // (undocumented)
1251+ clearRecords(): void ;
1252+ // (undocumented)
1253+ clone(): TestHost ;
1254+ // (undocumented)
1255+ protected _delete(path : Path ): void ;
1256+ // (undocumented)
1257+ protected _exists(path : Path ): boolean ;
1258+ // (undocumented)
1259+ get files(): Path [];
1260+ // (undocumented)
1261+ protected _isDirectory(path : Path ): boolean ;
1262+ // (undocumented)
1263+ protected _isFile(path : Path ): boolean ;
1264+ // (undocumented)
1265+ protected _list(path : Path ): PathFragment [];
1266+ // (undocumented)
1267+ protected _read(path : Path ): ArrayBuffer ;
1268+ // (undocumented)
1269+ get records(): TestLogRecord [];
1270+ // (undocumented)
1271+ protected _records: TestLogRecord [];
1272+ // (undocumented)
1273+ protected _rename(from : Path , to : Path ): void ;
1274+ // (undocumented)
1275+ protected _stat(path : Path ): Stats <SimpleMemoryHostStats > | null ;
1276+ // (undocumented)
1277+ get sync(): SyncDelegateHost <{}>;
1278+ // (undocumented)
1279+ protected _sync: SyncDelegateHost <{}> | null ;
1280+ // (undocumented)
1281+ protected _watch(path : Path , options ? : HostWatchOptions ): Observable <HostWatchEvent >;
1282+ // (undocumented)
1283+ protected _write(path : Path , content : FileBuffer ): void ;
12891284}
12901285
1286+ // @public (undocumented)
1287+ type TestLogRecord = {
1288+ kind: ' write' | ' read' | ' delete' | ' list' | ' exists' | ' isDirectory' | ' isFile' | ' stat' | ' watch' ;
1289+ path: Path ;
1290+ } | {
1291+ kind: ' rename' ;
1292+ from: Path ;
1293+ to: Path ;
1294+ };
1295+
12911296// @public (undocumented)
12921297class TransformLogger extends Logger {
12931298 constructor (name : string , transform : (stream : Observable <LogEntry >) => Observable <LogEntry >, parent ? : Logger | null );
@@ -1315,6 +1320,7 @@ type UriHandler = (uri: string) => Observable<JsonObject> | Promise<JsonObject>
13151320
13161321declare namespace virtualFs {
13171322 export {
1323+ test ,
13181324 AliasHost ,
13191325 stringToFileBuffer ,
13201326 fileBufferToString ,
@@ -1345,8 +1351,7 @@ declare namespace virtualFs {
13451351 ScopedHost ,
13461352 SynchronousDelegateExpectedException ,
13471353 SyncDelegateHost ,
1348- ResolverHost ,
1349- test
1354+ ResolverHost
13501355 }
13511356}
13521357export { virtualFs }
0 commit comments