We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a43c5a commit b077d3fCopy full SHA for b077d3f
.changeset/polite-vans-prove.md
@@ -0,0 +1,5 @@
1
+---
2
+"@browserbasehq/stagehand": patch
3
4
+
5
+Set default schema on extract options with no schema
lib/StagehandPage.ts
@@ -736,7 +736,12 @@ ${scriptContent} \
736
instruction: instructionOrOptions,
737
schema: defaultExtractSchema as T,
738
}
739
- : instructionOrOptions;
+ : instructionOrOptions.schema
740
+ ? instructionOrOptions
741
+ : {
742
+ ...instructionOrOptions,
743
+ schema: defaultExtractSchema as T,
744
+ };
745
746
const {
747
instruction,
0 commit comments