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 f02570c commit 3887a57Copy full SHA for 3887a57
docs/first-server/typescript.mdx
@@ -342,18 +342,18 @@ This guide uses the OpenWeatherMap API. You'll need a free API key from [OpenWea
342
}
343
344
return {
345
- content: {
346
- mimeType: "application/json",
+ content: [{
+ type: "text",
347
text: JSON.stringify(forecasts, null, 2)
348
- }
+ }]
349
};
350
} catch (error) {
351
if (axios.isAxiosError(error)) {
352
353
354
- mimeType: "text/plain",
355
text: `Weather API error: ${error.response?.data.message ?? error.message}`
356
- },
+ }],
357
isError: true,
358
359
0 commit comments