UNPKG

891 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';
10import { NgLanguageService } from '../api';
11/**
12 * This function is called by tsserver to retrieve the external (non-TS) files
13 * that should belong to the specified `project`. For Angular, these files are
14 * external templates. This is called once when the project is loaded, then
15 * every time when the program is updated.
16 * @param project Project for which external files should be retrieved.
17 */
18export declare function getExternalFiles(project: tss.server.Project): string[];
19export declare function create(info: tss.server.PluginCreateInfo): NgLanguageService;