firecrawl 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
- package/src/index.ts +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -54,7 +54,7 @@ interface FirecrawlDocumentMetadata {
|
|
|
54
54
|
* Document interface for Firecrawl.
|
|
55
55
|
* Represents a document retrieved or processed by Firecrawl.
|
|
56
56
|
*/
|
|
57
|
-
interface FirecrawlDocument<T> {
|
|
57
|
+
interface FirecrawlDocument<T = any> {
|
|
58
58
|
url?: string;
|
|
59
59
|
markdown?: string;
|
|
60
60
|
html?: string;
|
|
@@ -77,7 +77,7 @@ interface CrawlScrapeOptions {
|
|
|
77
77
|
waitFor?: number;
|
|
78
78
|
timeout?: number;
|
|
79
79
|
}
|
|
80
|
-
interface ScrapeParams<LLMSchema extends zt.ZodSchema> extends CrawlScrapeOptions {
|
|
80
|
+
interface ScrapeParams<LLMSchema extends zt.ZodSchema = any> extends CrawlScrapeOptions {
|
|
81
81
|
extract?: {
|
|
82
82
|
prompt?: string;
|
|
83
83
|
schema?: LLMSchema;
|
|
@@ -88,7 +88,7 @@ interface ScrapeParams<LLMSchema extends zt.ZodSchema> extends CrawlScrapeOption
|
|
|
88
88
|
* Response interface for scraping operations.
|
|
89
89
|
* Defines the structure of the response received after a scraping operation.
|
|
90
90
|
*/
|
|
91
|
-
interface ScrapeResponse<LLMResult> extends FirecrawlDocument<LLMResult> {
|
|
91
|
+
interface ScrapeResponse<LLMResult = any> extends FirecrawlDocument<LLMResult> {
|
|
92
92
|
success: true;
|
|
93
93
|
warning?: string;
|
|
94
94
|
error?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ interface FirecrawlDocumentMetadata {
|
|
|
54
54
|
* Document interface for Firecrawl.
|
|
55
55
|
* Represents a document retrieved or processed by Firecrawl.
|
|
56
56
|
*/
|
|
57
|
-
interface FirecrawlDocument<T> {
|
|
57
|
+
interface FirecrawlDocument<T = any> {
|
|
58
58
|
url?: string;
|
|
59
59
|
markdown?: string;
|
|
60
60
|
html?: string;
|
|
@@ -77,7 +77,7 @@ interface CrawlScrapeOptions {
|
|
|
77
77
|
waitFor?: number;
|
|
78
78
|
timeout?: number;
|
|
79
79
|
}
|
|
80
|
-
interface ScrapeParams<LLMSchema extends zt.ZodSchema> extends CrawlScrapeOptions {
|
|
80
|
+
interface ScrapeParams<LLMSchema extends zt.ZodSchema = any> extends CrawlScrapeOptions {
|
|
81
81
|
extract?: {
|
|
82
82
|
prompt?: string;
|
|
83
83
|
schema?: LLMSchema;
|
|
@@ -88,7 +88,7 @@ interface ScrapeParams<LLMSchema extends zt.ZodSchema> extends CrawlScrapeOption
|
|
|
88
88
|
* Response interface for scraping operations.
|
|
89
89
|
* Defines the structure of the response received after a scraping operation.
|
|
90
90
|
*/
|
|
91
|
-
interface ScrapeResponse<LLMResult> extends FirecrawlDocument<LLMResult> {
|
|
91
|
+
interface ScrapeResponse<LLMResult = any> extends FirecrawlDocument<LLMResult> {
|
|
92
92
|
success: true;
|
|
93
93
|
warning?: string;
|
|
94
94
|
error?: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -58,7 +58,7 @@ export interface FirecrawlDocumentMetadata {
|
|
|
58
58
|
* Document interface for Firecrawl.
|
|
59
59
|
* Represents a document retrieved or processed by Firecrawl.
|
|
60
60
|
*/
|
|
61
|
-
export interface FirecrawlDocument<T> {
|
|
61
|
+
export interface FirecrawlDocument<T = any> {
|
|
62
62
|
url?: string;
|
|
63
63
|
markdown?: string;
|
|
64
64
|
html?: string;
|
|
@@ -83,7 +83,7 @@ export interface CrawlScrapeOptions {
|
|
|
83
83
|
timeout?: number;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export interface ScrapeParams<LLMSchema extends zt.ZodSchema> extends CrawlScrapeOptions {
|
|
86
|
+
export interface ScrapeParams<LLMSchema extends zt.ZodSchema = any> extends CrawlScrapeOptions {
|
|
87
87
|
extract?: {
|
|
88
88
|
prompt?: string;
|
|
89
89
|
schema?: LLMSchema;
|
|
@@ -95,7 +95,7 @@ export interface ScrapeParams<LLMSchema extends zt.ZodSchema> extends CrawlScrap
|
|
|
95
95
|
* Response interface for scraping operations.
|
|
96
96
|
* Defines the structure of the response received after a scraping operation.
|
|
97
97
|
*/
|
|
98
|
-
export interface ScrapeResponse<LLMResult> extends FirecrawlDocument<LLMResult> {
|
|
98
|
+
export interface ScrapeResponse<LLMResult = any> extends FirecrawlDocument<LLMResult> {
|
|
99
99
|
success: true;
|
|
100
100
|
warning?: string;
|
|
101
101
|
error?: string;
|