interface InputSchema { companyWebsites: string[]; sortBy: string; filterByStarRating: string; filterBylanguage: string; filterByVerified: string; startFromPageNumber: number; endAtPageNumber: number; } const input = await Actor.getInput<InputSchema>(); let companyWebsites: string[] | undefined = input?.companyWebsites; companyWebsites?.forEach(function (companyWebsite) { console.log(companyWebsite); });
const input = await Actor.getInput<InputSchema>(); let companyWebsites: string[] | undefined = input?.companyWebsites; companyWebsites?.forEach(function (companyWebsite) { console.log("validating companyWebsites"); console.log(companyWebsite); });
console.log(companyWebsite.url);
. This probably happened because you used "editor": "requestListSources"
in the input schema file.interface InputSchema { companyWebsites: string[]; sortBy: string; filterByStarRating: string; filterBylanguage: string; filterByVerified: string; startFromPageNumber: number; endAtPageNumber: number; }
"urls": { "title": "URLs of the pages", "type": "array", "description": "The URLs of websites you want to get the data from.", "editor": "stringList", "prefill": ["https://www.apify.com", "https://docs.apify.com/"] }: