Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/dev/parcel-transformer-docs/DocsTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,11 @@ module.exports = new Transformer({
);
}

if (path.isTSExpressionWithTypeArguments()) {
// due to oxlint formatting, WaterfallLayout/other classes now are multiline declarations
// the "extends Layout<Node<T>, 0>" part then ends up becoming isTSInstantiationExpressions superclass rather than just Identifier.
// as a result, should be handled similar to isTSExpressionWithTypeArguments (aka Blah<T>)
// see https://astexplorer.net/#/gist/451958d4b4a31868f0896664e2291a92/15ffdc9fe4097cfdb9f997f12d550fdff4761205 for verification
if (path.isTSExpressionWithTypeArguments() || path.isTSInstantiationExpression()) {
if (path.node.typeParameters) {
return Object.assign(node, {
type: 'application',
Expand Down