You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(compiler): fix JSDoc @PARAM errors in checker.ts
Four documentation-only fixes in src/compiler/checker.ts:
1. Fix swapped JSDoc type/name in getAccessibleSymbolChainFromSymbolTable:
`@param {ignoreQualification} boolean` → `@param {boolean} ignoreQualification`
2. Fix @PARAM name typo in isSymbolAccessible JSDoc:
`shouldComputeAliasToMakeVisible` → `shouldComputeAliasesToMakeVisible`
(matches the actual parameter name and description fix: 'mark' → 'marked')
3. Fix stale @PARAM name in getIndexTypeForMappedType JSDoc:
`noIndexSignatures` → `indexFlags` (the parameter was renamed but doc was not updated)
4. Remove ghost @PARAM key from copySymbol JSDoc:
copySymbol(symbol, meaning) has no `key` parameter; the doc line was left over
from an earlier signature.
No runtime behaviour is affected.
Copy file name to clipboardExpand all lines: src/compiler/checker.ts
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5757,7 +5757,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
5757
5757
return result;
5758
5758
5759
5759
/**
5760
-
* @param {ignoreQualification} boolean Set when a symbol is being looked for through the exports of another symbol (meaning we have a route to qualify it already)
5760
+
* @param {boolean} ignoreQualification Set when a symbol is being looked for through the exports of another symbol (meaning we have a route to qualify it already)
@@ -18879,7 +18879,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
18879
18879
* rather than manufacturing the properties. We can't just fetch the `constraintType` since that would ignore mappings
18880
18880
* and mapping the `constraintType` directly ignores how mapped types map _properties_ and not keys (thus ignoring subtype
18881
18881
* reduction in the constraintType) when possible.
18882
-
* @param noIndexSignatures Indicates if _string_ index signatures should be elided. (other index signatures are always reported)
18882
+
* @param indexFlags Flags controlling index type resolution; use IndexFlags.NoIndexSignatures to elide string index signatures (other index signatures are always reported)
18883
18883
*/
18884
18884
function getIndexTypeForMappedType(type: MappedType, indexFlags: IndexFlags) {
0 commit comments