Put back, fix ()-output optimization

This commit is contained in:
Michael Howell 2022-06-27 11:07:45 -07:00
parent 8081096a7f
commit 6f9a460fef
2 changed files with 2 additions and 1 deletions

View File

@ -170,6 +170,7 @@ impl Serialize for IndexItemFunctionType {
_ => seq.serialize_element(&self.inputs)?,
}
match &self.output[..] {
[] => {}
[one] if one.generics.is_none() => seq.serialize_element(one)?,
_ => seq.serialize_element(&self.output)?,
}

View File

@ -1910,7 +1910,7 @@ function initSearch(rawSearchIndex) {
output = buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA], lowercasePaths);
}
} else {
output = null;
output = [];
}
return {
inputs, output,