Exclude duplicates of widget property in docs (#276)
This commit is contained in:
parent
a07fb35eda
commit
07eeac340f
1 changed files with 9 additions and 6 deletions
|
@ -108,6 +108,8 @@ function parseDocs(code: string) {
|
|||
if (possibleMatch == -1) {
|
||||
console.log(`Failed to find a match for "${propMatch[1].replace("-", "_")}" ~ ${JSON.stringify(matches, null, 2)} ~ ${lines[no]}`)
|
||||
}
|
||||
|
||||
if (!widgets[currentWidget].props.some(p => p.name == propMatch[1])) {
|
||||
const type = replaceTypeNames(matches[possibleMatch + 1])
|
||||
|
||||
widgets[currentWidget].props.push({
|
||||
|
@ -117,6 +119,7 @@ function parseDocs(code: string) {
|
|||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
return widgets;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue