source: trip-planner-front/node_modules/@angular/cdk/schematics/update-tool/utils/virtual-host.d.ts@ 6fe77af

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

initial commit

  • Property mode set to 100644
File size: 1.6 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 */
8import * as ts from 'typescript';
9import { FileSystem } from '../file-system';
10declare module 'typescript' {
11 interface FileSystemEntries {
12 readonly files: readonly string[];
13 readonly directories: readonly string[];
14 }
15 const matchFiles: undefined | ((path: string, extensions: readonly string[] | undefined, excludes: readonly string[] | undefined, includes: readonly string[] | undefined, useCaseSensitiveFileNames: boolean, currentDirectory: string, depth: number | undefined, getFileSystemEntries: (path: string) => FileSystemEntries, realpath: (path: string) => string) => string[]);
16}
17/**
18 * Implementation of a TypeScript parse config host that relies fully on
19 * a given virtual file system.
20 */
21export declare class FileSystemHost implements ts.ParseConfigHost {
22 private _fileSystem;
23 useCaseSensitiveFileNames: boolean;
24 constructor(_fileSystem: FileSystem);
25 fileExists(path: string): boolean;
26 readFile(path: string): string | undefined;
27 readDirectory(rootDir: string, extensions: string[], excludes: string[] | undefined, includes: string[], depth?: number): string[];
28 private _getFileSystemEntries;
29}
30/**
31 * Creates a TypeScript compiler host that fully relies fully on the given
32 * virtual file system. i.e. no interactions with the working directory.
33 */
34export declare function createFileSystemCompilerHost(options: ts.CompilerOptions, fileSystem: FileSystem): ts.CompilerHost;
Note: See TracBrowser for help on using the repository browser.