UNPKG

849 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 */
8/// <amd-module name="@angular/language-service/src/ts_plugin" />
9import * as tss from 'typescript/lib/tsserverlibrary';
10/**
11 * This function is called by tsserver to retrieve the external (non-TS) files
12 * that should belong to the specified `project`. For Angular, these files are
13 * external templates. This is called once when the project is loaded, then
14 * every time when the program is updated.
15 * @param project Project for which external files should be retrieved.
16 */
17export declare function getExternalFiles(project: tss.server.Project): string[];
18export declare function create(info: tss.server.PluginCreateInfo): tss.LanguageService;