Skip to content

Commit 97cd7bf

Browse files
committed
Respond to code review comments
1 parent d60c640 commit 97cd7bf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ namespace ts {
17101710
return moduleResolution;
17111711
}
17121712

1713-
export function getStrictOptionValue(compilerOptions: CompilerOptions, flag: "noImplicitAny" | "noImplicitThis" | "strictNullChecks" | "strictFunctionTypes" | "alwaysStrict"): boolean {
1713+
export function getStrictOptionValue(compilerOptions: CompilerOptions, flag: StrictOptionName): boolean {
17141714
return compilerOptions[flag] === undefined ? compilerOptions.strict : compilerOptions[flag];
17151715
}
17161716

src/compiler/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3676,6 +3676,8 @@ namespace ts {
36763676

36773677
export type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | null | undefined;
36783678

3679+
export type StrictOptionName = "noImplicitAny" | "noImplicitThis" | "strictNullChecks" | "strictFunctionTypes" | "alwaysStrict";
3680+
36793681
export interface CompilerOptions {
36803682
/*@internal*/ all?: boolean;
36813683
allowJs?: boolean;

0 commit comments

Comments
 (0)