Skip to content

Commit 7e899b7

Browse files
Fix docs application of generics to nested interfaces (#4104)
Co-authored-by: Danni <[email protected]>
1 parent ee28a57 commit 7e899b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/dev/parcel-packager-docs/DocsPackager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ module.exports = new Packager({
102102
params[p.name] = v;
103103
});
104104
paramStack.push(params);
105+
// so we don't replace the type parameters in the extended interface
106+
application = null;
105107
hasParams = true;
106108
} else if (t && (t.type === 'alias' || t.type === 'interface' || t.type === 'component') && t.typeParameters && keyStack.length === 0) {
107109
// If we are at a root export, replace type parameters with constraints if possible.

0 commit comments

Comments
 (0)