mirror of
https://github.com/motion-canvas/motion-canvas.git
synced 2026-01-11 23:07:57 -05:00
fix(docs): name collisions between members (#117)
Prevents name collisions between static and instance members.
This commit is contained in:
@@ -228,10 +228,14 @@ async function parseTypes(options, projectName, externalProject) {
|
||||
}
|
||||
} else {
|
||||
reflection.url = reflection.parent.url;
|
||||
let name = reflection.name;
|
||||
if (reflection.flags?.isStatic) {
|
||||
name = `static-${name}`;
|
||||
}
|
||||
if (reflection.parent.anchor) {
|
||||
reflection.anchor = reflection.parent.anchor + '-' + reflection.name;
|
||||
reflection.anchor = reflection.parent.anchor + '-' + name;
|
||||
} else {
|
||||
reflection.anchor = reflection.name;
|
||||
reflection.anchor = name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user