UNPKG

745 BTypeScriptView Raw
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 */
9import ts from 'typescript';
10import { AbsoluteFsPath, PathString } from './types';
11/**
12 * Convert Windows-style separators to POSIX separators.
13 */
14export declare function normalizeSeparators(path: string): string;
15/**
16 * Remove a .ts, .d.ts, or .js extension from a file name.
17 */
18export declare function stripExtension<T extends PathString>(path: T): T;
19export declare function getSourceFileOrError(program: ts.Program, fileName: AbsoluteFsPath): ts.SourceFile;