UNPKG

896 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 when the given version ∉ [minVersion, maxVersion[.
7 *
8 * @param version The version on which the check will be performed
9 * @param minVersion The lower bound version. A valid version needs to be greater than minVersion
10 * @param maxVersion The upper bound version. A valid version needs to be strictly less than
11 * maxVersion
12 *
13 * @throws Will throw an error if the given version ∉ [minVersion, maxVersion[
14 */
15export declare function checkVersion(version: string, minVersion: string, maxVersion: string): void;
16export declare function verifySupportedTypeScriptVersion(): void;