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