1 | /// <amd-module name="@angular/compiler-cli/src/ngtsc/file_system/src/util" />
|
2 | /**
|
3 | * @license
|
4 | * Copyright Google LLC All Rights Reserved.
|
5 | *
|
6 | * Use of this source code is governed by an MIT-style license that can be
|
7 | * found in the LICENSE file at https://angular.io/license
|
8 | */
|
9 | import ts from 'typescript';
|
10 | import { AbsoluteFsPath, PathString } from './types';
|
11 | /**
|
12 | * Convert Windows-style separators to POSIX separators.
|
13 | */
|
14 | export declare function normalizeSeparators(path: string): string;
|
15 | /**
|
16 | * Remove a .ts, .d.ts, or .js extension from a file name.
|
17 | */
|
18 | export declare function stripExtension<T extends PathString>(path: T): T;
|
19 | export declare function getSourceFileOrError(program: ts.Program, fileName: AbsoluteFsPath): ts.SourceFile;
|