UNPKG

948 BTypeScriptView Raw
1/// <amd-module name="@angular/compiler-cli/src/typescript_support" />
2export declare function setTypeScriptVersionForTesting(version: string): void;
3export declare function restoreTypeScriptVersionForTesting(): void;
4/**
5 * Checks whether a given version ∈ [minVersion, maxVersion[
6 * An error will be thrown if the following statements are simultaneously true:
7 * - the given version ∉ [minVersion, maxVersion[,
8 *
9 * @param version The version on which the check will be performed
10 * @param minVersion The lower bound version. A valid version needs to be greater than minVersion
11 * @param maxVersion The upper bound version. A valid version needs to be strictly less than
12 * maxVersion
13 *
14 * @throws Will throw an error if the given version ∉ [minVersion, maxVersion[
15 */
16export declare function checkVersion(version: string, minVersion: string, maxVersion: string): void;
17export declare function verifySupportedTypeScriptVersion(): void;