mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Slot parameters apidoc updates on build-apidoc
This commit is contained in:
parent
d9cfb86f11
commit
b7197c622f
1 changed files with 5 additions and 1 deletions
|
@ -382,8 +382,12 @@ if (project) {
|
||||||
} else {
|
} else {
|
||||||
const childType = child.type.elementType ? child.type.elementType.name : child.type.name;
|
const childType = child.type.elementType ? child.type.elementType.name : child.type.name;
|
||||||
|
|
||||||
|
if (child.type?.declaration?.signatures) {
|
||||||
|
type += `\t <b>${child.name}</b>: (${child.type?.declaration?.signatures[0]?.parameters[0].name}: ${child.type?.declaration?.signatures[0]?.parameters[0].type?.name}) => ${child.type?.declaration?.signatures[0].type?.name}, // ${child.type?.declaration?.signatures[0].comment.summary[0]?.text}\n`;
|
||||||
|
} else {
|
||||||
type += ` \t <b>${child.name}</b>: ${childType}, // ${child.comment?.summary[0]?.text}\n `;
|
type += ` \t <b>${child.name}</b>: ${childType}, // ${child.comment?.summary[0]?.text}\n `;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue