UNPKG

1.13 kBTypeScriptView Raw
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.dev/license
7 */
8import ts from 'typescript';
9import { FileSystem } from './types';
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, directoryExists: (path: string) => boolean) => string[]);
16}
17/**
18 * Creates a {@link ts.CompilerHost#readDirectory} implementation function,
19 * that leverages the specified file system (that may be e.g. virtual).
20 */
21export declare function createFileSystemTsReadDirectoryFn(fs: FileSystem): NonNullable<ts.CompilerHost['readDirectory']>;
22
\No newline at end of file