source: trip-planner-front/node_modules/@angular-devkit/core/node/host.d.ts@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/// <reference types="node" />
9import { Stats } from 'fs';
10import { Observable } from 'rxjs';
11import { Path, PathFragment, virtualFs } from '../src';
12/**
13 * An implementation of the Virtual FS using Node as the background. There are two versions; one
14 * synchronous and one asynchronous.
15 */
16export declare class NodeJsAsyncHost implements virtualFs.Host<Stats> {
17 get capabilities(): virtualFs.HostCapabilities;
18 write(path: Path, content: virtualFs.FileBuffer): Observable<void>;
19 read(path: Path): Observable<virtualFs.FileBuffer>;
20 delete(path: Path): Observable<void>;
21 rename(from: Path, to: Path): Observable<void>;
22 list(path: Path): Observable<PathFragment[]>;
23 exists(path: Path): Observable<boolean>;
24 isDirectory(path: Path): Observable<boolean>;
25 isFile(path: Path): Observable<boolean>;
26 stat(path: Path): Observable<virtualFs.Stats<Stats>>;
27 watch(path: Path, _options?: virtualFs.HostWatchOptions): Observable<virtualFs.HostWatchEvent> | null;
28}
29/**
30 * An implementation of the Virtual FS using Node as the backend, synchronously.
31 */
32export declare class NodeJsSyncHost implements virtualFs.Host<Stats> {
33 get capabilities(): virtualFs.HostCapabilities;
34 write(path: Path, content: virtualFs.FileBuffer): Observable<void>;
35 read(path: Path): Observable<virtualFs.FileBuffer>;
36 delete(path: Path): Observable<void>;
37 rename(from: Path, to: Path): Observable<void>;
38 list(path: Path): Observable<PathFragment[]>;
39 exists(path: Path): Observable<boolean>;
40 isDirectory(path: Path): Observable<boolean>;
41 isFile(path: Path): Observable<boolean>;
42 stat(path: Path): Observable<virtualFs.Stats<Stats>>;
43 watch(path: Path, _options?: virtualFs.HostWatchOptions): Observable<virtualFs.HostWatchEvent> | null;
44}
Note: See TracBrowser for help on using the repository browser.