mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Require exactly 'true' for truthy reference directive prop (#57782)
This commit is contained in:
@@ -10511,7 +10511,7 @@ export function processPragmasIntoFields(context: PragmaContext, reportDiagnosti
|
||||
const libReferenceDirectives = context.libReferenceDirectives;
|
||||
forEach(toArray(entryOrList) as PragmaPseudoMap["reference"][], arg => {
|
||||
const { types, lib, path, ["resolution-mode"]: res } = arg.arguments;
|
||||
if (arg.arguments["no-default-lib"]) {
|
||||
if (arg.arguments["no-default-lib"] === "true") {
|
||||
context.hasNoDefaultLib = true;
|
||||
}
|
||||
else if (types) {
|
||||
|
||||
Reference in New Issue
Block a user