mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-23 10:29:01 -06:00
Require exactly 'true' for truthy reference directive prop (#57782)
This commit is contained in:
parent
601117644e
commit
76f8de0a0d
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user