Files
Angular-Cn/modules/@angular/compiler/src/output/path_util.ts
T

19 lines
591 B
TypeScript
Raw Normal View History

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Interface that defines how import statements should be generated.
*/
export abstract class ImportResolver {
/**
* Converts a file path to a module name that can be used as an `import.
* I.e. `path/to/importedFile.ts` should be imported by `path/to/containingFile.ts`.
*/
2016-11-17 12:24:33 -08:00
abstract fileNameToModuleName(importedFilePath: string, containingFilePath: string): string;
}