@@ -59,8 +59,8 @@ type ScrapeConfigOptions = {
5959 proxy_pool ?: string ;
6060 session ?: string ;
6161 tags ?: string [ ] ;
62- format ?: string | Format ;
63- format_options ?: string [ ] | FormatOption [ ] ;
62+ format ?: 'json' | 'text' | 'markdown' | 'clean_html' | 'raw' | Format ;
63+ format_options ?: ( 'no_links' | 'no_images' | 'only_content' ) [ ] | FormatOption [ ] ;
6464 correlation_id ?: string ;
6565 cookies ?: Rec < string > ;
6666 body ?: string ;
@@ -70,7 +70,7 @@ type ScrapeConfigOptions = {
7070 rendering_wait ?: number ;
7171 wait_for_selector ?: string ;
7272 screenshots ?: Rec < any > ;
73- screenshot_flags ?: string [ ] | ScreenshotFlags [ ] ;
73+ screenshot_flags ?: ( 'load_images' | 'dark_mode' | 'block_banners' | 'print_media_format' | 'high_quality' ) [ ] | ScreenshotFlags [ ] ;
7474 session_sticky_proxy ?: boolean ;
7575 webhook ?: string ;
7676 timeout ?: number ;
@@ -101,8 +101,8 @@ export class ScrapeConfig {
101101 proxy_pool ?: string ;
102102 session ?: string ;
103103 tags : Set < string > = new Set < string > ( ) ;
104- format ?: Format | string ; // raw(unchanged)
105- format_options ?: string [ ] | FormatOption [ ] ;
104+ format ?: 'json' | 'text' | 'markdown' | 'clean_html' | ' raw' | Format ;
105+ format_options ?: ( 'no_links' | 'no_images' | 'only_content' ) [ ] | FormatOption [ ] ;
106106 correlation_id ?: string ;
107107 cookies ?: Rec < string > ;
108108 body ?: string ;
@@ -113,7 +113,7 @@ export class ScrapeConfig {
113113 wait_for_selector ?: string ;
114114 session_sticky_proxy = false ;
115115 screenshots ?: Rec < any > ;
116- screenshot_flags ?: ScreenshotFlags [ ] | string [ ] ;
116+ screenshot_flags ?: ( 'load_images' | 'dark_mode' | 'block_banners' | 'print_media_format' | 'high_quality' ) [ ] | ScreenshotFlags [ ] ;
117117 webhook ?: string ;
118118 timeout ?: number ; // in milliseconds
119119 js_scenario ?: Rec < any > ;
0 commit comments