Respond to code review comments

This commit is contained in:
Mohamed Hegazy
2017-10-27 10:14:21 -07:00
parent d60c640d0f
commit 97cd7bf5af
2 changed files with 3 additions and 1 deletions

View File

@@ -1710,7 +1710,7 @@ namespace ts {
return moduleResolution;
}
export function getStrictOptionValue(compilerOptions: CompilerOptions, flag: "noImplicitAny" | "noImplicitThis" | "strictNullChecks" | "strictFunctionTypes" | "alwaysStrict"): boolean {
export function getStrictOptionValue(compilerOptions: CompilerOptions, flag: StrictOptionName): boolean {
return compilerOptions[flag] === undefined ? compilerOptions.strict : compilerOptions[flag];
}

View File

@@ -3676,6 +3676,8 @@ namespace ts {
export type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | null | undefined;
export type StrictOptionName = "noImplicitAny" | "noImplicitThis" | "strictNullChecks" | "strictFunctionTypes" | "alwaysStrict";
export interface CompilerOptions {
/*@internal*/ all?: boolean;
allowJs?: boolean;