apify-sdk-legacy
Version:
Package for Crawlee that should allows to import and use packages, that are using older version of Apify SDK.
29 lines (28 loc) • 1.16 kB
TypeScript
import { Actor } from 'apify';
import Crawlee from 'crawlee';
declare module 'apify' {
const call: typeof Actor.call;
const createProxyConfiguration: typeof Actor.createProxyConfiguration;
const getEnv: typeof Actor.getEnv;
const getInput: typeof Actor.getInput;
const getValue: typeof Actor.getValue;
const isAtHome: typeof Actor.isAtHome;
const main: typeof Actor.main;
const newClient: typeof Actor.newClient;
const openDataset: typeof Actor.openDataset;
const openKeyValueStore: typeof Actor.openKeyValueStore;
const openRequestQueue: typeof Actor.openRequestQueue;
const pushData: typeof Actor.pushData;
const setValue: typeof Actor.setValue;
const utils: typeof Crawlee.utils;
const Session: typeof Crawlee.Session;
const events: {
on: typeof Actor.on;
off: typeof Actor.off;
};
const BasicCrawler: typeof Crawlee.BasicCrawler;
const CheerioCrawler: typeof Crawlee.CheerioCrawler;
const HttpCrawler: typeof Crawlee.HttpCrawler;
const PlaywrightCrawler: typeof Crawlee.PlaywrightCrawler;
const PuppeteerCrawler: typeof Crawlee.PuppeteerCrawler;
}