File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ const returnTypeUrl = getTypeDocs(returnTypeOrDefault);
3232 let unionTypes: any [] | null = [];
3333 if (type .includes (" |" )) {
3434 const unionMembers = defaultedType .split (" |" );
35+
3536 unionTypes = unionMembers .map ((unionType : string , count : number ) => {
3637 unionType = unionType .trim ();
3738 const unionTypeUrl = getTypeDocs (unionType )
@@ -40,8 +41,8 @@ const returnTypeUrl = getTypeDocs(returnTypeOrDefault);
4041 <>
4142 <LuaTypeComponent url = { unionTypeUrl } type = { unionType } />
4243 { count !== unionMembers .length - 1 && (
43- <br />
44- <span >{ " \u00A0 " .repeat (22 )} |</span >
44+ <> { unionMembers . length > 2 && < br /> } < />
45+ <span >{ unionMembers . length > 2 && " \u00A0 " .repeat (22 )} |</span >
4546 ) || " " }
4647 </>
4748 )
You can’t perform that action at this time.
0 commit comments