UNPKG

835 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 * as ts from 'typescript';
9export declare class BuildBrowserFeatures {
10 private projectRoot;
11 readonly supportedBrowsers: string[];
12 constructor(projectRoot: string);
13 /**
14 * True, when one or more browsers requires ES5
15 * support and the script target is ES2015 or greater.
16 */
17 isDifferentialLoadingNeeded(scriptTarget: ts.ScriptTarget): boolean;
18 /**
19 * True, when one or more browsers requires ES5 support
20 */
21 isEs5SupportNeeded(): boolean;
22 /**
23 * True, when a browser feature is supported partially or fully.
24 */
25 isFeatureSupported(featureId: string): boolean;
26}