UNPKG

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