Skip to content

Commit 171e57b

Browse files
committed
[INTERNAL] lib/processors/jsdoc: fix typo, add reasoning reg. type parameters
Cherry-picked from UI5/openui5@bc1f07724
1 parent feabaca commit 171e57b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/processors/jsdoc/lib/ui5/template/publish.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2557,7 +2557,8 @@ function validateAPIJSON(api) {
25572557
for (const typeParam of symbol.constructor.typeParameters) {
25582558
currentTypeParameters[typeParam.name] = typeParam;
25592559
}
2560-
// check type oarameters in a 2nd loop so that they can depend on each other
2560+
// Check type parameters in a 2nd loop so that they can depend on each other.
2561+
// As of TypeScript 5.9.2, `class Foo<T1 extends T2, T2 = T1> {}´ is valid
25612562
for (const typeParam of symbol.constructor.typeParameters) {
25622563
checkTypeParameter(typeParam, `type parameter ${typeParam.name} of ${symbol.name}`);
25632564
}

0 commit comments

Comments
 (0)