Skip to content

Commit f470f09

Browse files
committed
fix type error in testOutputSchemaServers.ts
1 parent 39b2f65 commit f470f09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/examples/client/testOutputSchemaServers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ async function main() {
6969
console.log(JSON.stringify(weatherResult.structuredContent, null, 2));
7070
}
7171

72-
if (weatherResult.content) {
72+
if (weatherResult.content && Array.isArray(weatherResult.content)) {
7373
console.log("Unstructured content:");
74-
weatherResult.content.forEach(content => {
74+
weatherResult.content.forEach((content: any) => {
7575
if (content.type === "text") {
7676
console.log(content.text);
7777
}

0 commit comments

Comments
 (0)