@@ -124,7 +124,7 @@ func prepareStdlib(g *typeGraph) {
124
124
"manifestJsonEx" : g .newSimpleFuncType (stringType , "value" , "indent" ),
125
125
"manifestJsonMinified" : g .newSimpleFuncType (stringType , "value" ),
126
126
"manifestYamlDoc" : g .newFuncType (stringType , []ast.Parameter {required ("value" ), optional ("indent_array_in_object" ), optional ("quote_keys" )}),
127
- "manifestYamlStream" : g .newSimpleFuncType ( stringType , "value" ),
127
+ "manifestYamlStream" : g .newFuncType ( anyArrayType , []ast. Parameter { required ( "value" ), optional ( "indent_array_in_object" ), optional ( "c_document_end" ), optional ( "quote_keys" )} ),
128
128
"manifestXmlJsonml" : g .newSimpleFuncType (stringType , "value" ),
129
129
130
130
// Arrays
@@ -153,7 +153,7 @@ func prepareStdlib(g *typeGraph) {
153
153
"minArray" : g .newFuncType (anyArrayType , []ast.Parameter {required ("arr" ), optional ("keyF" )}),
154
154
"maxArray" : g .newFuncType (anyArrayType , []ast.Parameter {required ("arr" ), optional ("keyF" )}),
155
155
"contains" : g .newSimpleFuncType (boolType , "arr" , "elem" ),
156
- "avg" : g .newSimpleFuncType (numberType , "arr" ),
156
+ "avg" : g .newSimpleFuncType (numberType , "arr" ),
157
157
"all" : g .newSimpleFuncType (boolArrayType , "arr" ),
158
158
"any" : g .newSimpleFuncType (boolArrayType , "arr" ),
159
159
"remove" : g .newSimpleFuncType (anyArrayType , "arr" , "elem" ),
0 commit comments