mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix error message
This commit is contained in:
@@ -3241,7 +3241,7 @@
|
||||
"category": "Error",
|
||||
"code": 5061
|
||||
},
|
||||
"Substitution '{0}' in pattern '{1}' in can have at most one '*' character.": {
|
||||
"Substitution '{0}' in pattern '{1}' can have at most one '*' character.": {
|
||||
"category": "Error",
|
||||
"code": 5062
|
||||
},
|
||||
|
||||
@@ -2980,7 +2980,7 @@ namespace ts {
|
||||
const typeOfSubst = typeof subst;
|
||||
if (typeOfSubst === "string") {
|
||||
if (!hasZeroOrOneAsteriskCharacter(subst)) {
|
||||
createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character, subst, key);
|
||||
createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character, subst, key);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
tests/cases/compiler/root/tsconfig.json(8,13): error TS5061: Pattern '*1*' can have at most one '*' character.
|
||||
tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*' in pattern '*1*' in can have at most one '*' character.
|
||||
tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
|
||||
|
||||
|
||||
==== tests/cases/compiler/root/tsconfig.json (2 errors) ====
|
||||
@@ -14,7 +14,7 @@ tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*'
|
||||
~~~~~
|
||||
!!! error TS5061: Pattern '*1*' can have at most one '*' character.
|
||||
~~~~~
|
||||
!!! error TS5062: Substitution '*2*' in pattern '*1*' in can have at most one '*' character.
|
||||
!!! error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
tests/cases/compiler/root/tsconfig.json(8,13): error TS5061: Pattern '*1*' can have at most one '*' character.
|
||||
tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*' in pattern '*1*' in can have at most one '*' character.
|
||||
tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
|
||||
|
||||
|
||||
==== tests/cases/compiler/root/tsconfig.json (2 errors) ====
|
||||
@@ -14,7 +14,7 @@ tests/cases/compiler/root/tsconfig.json(8,22): error TS5062: Substitution '*2*'
|
||||
~~~~~
|
||||
!!! error TS5061: Pattern '*1*' can have at most one '*' character.
|
||||
~~~~~
|
||||
!!! error TS5062: Substitution '*2*' in pattern '*1*' in can have at most one '*' character.
|
||||
!!! error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
tests/cases/compiler/tsconfig.json(6,11): error TS5061: Pattern '@interface/**/*' can have at most one '*' character.
|
||||
tests/cases/compiler/tsconfig.json(7,11): error TS5061: Pattern '@service/**/*' can have at most one '*' character.
|
||||
tests/cases/compiler/tsconfig.json(7,29): error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' in can have at most one '*' character.
|
||||
tests/cases/compiler/tsconfig.json(7,29): error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' can have at most one '*' character.
|
||||
|
||||
|
||||
==== tests/cases/compiler/tsconfig.json (3 errors) ====
|
||||
@@ -16,7 +16,7 @@ tests/cases/compiler/tsconfig.json(7,29): error TS5062: Substitution './src/serv
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS5061: Pattern '@service/**/*' can have at most one '*' character.
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' in can have at most one '*' character.
|
||||
!!! error TS5062: Substitution './src/service/**/*' in pattern '@service/**/*' can have at most one '*' character.
|
||||
"@controller/*": ["controller/*"],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user