Skip to content

Commit 272d8d5

Browse files
committed
Export inferArrayItemType helper function
1 parent 449deaa commit 272d8d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/actors.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function truncateActorReadme(readme: string, limit = ACTOR_README_MAX_LEN
110110
* Helps determine the type of items in an array schema property.
111111
* Priority order: explicit type in items > prefill type > default value type > editor type.
112112
*/
113-
function inferArrayItemType(property: ISchemaProperties): string | null {
113+
export function inferArrayItemType(property: ISchemaProperties): string | null {
114114
return property.items?.type
115115
|| (Array.isArray(property.prefill) && property.prefill.length > 0 && typeof property.prefill[0])
116116
|| (Array.isArray(property.default) && property.default.length > 0 && typeof property.default[0])
@@ -241,7 +241,6 @@ function buildNestedProperties(properties: Record<string, ISchemaProperties>): R
241241
},
242242
},
243243
},
244-
required: ['useApifyProxy'],
245244
};
246245
}
247246
}

0 commit comments

Comments
 (0)