Skip to content

Commit ef62ae0

Browse files
committed
fix comments
1 parent cf82e7d commit ef62ae0

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/types.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,21 @@ export const IconSchema = z
224224
.passthrough();
225225

226226
/**
227-
* Optional set of sized icons that the client can display in a user interface.
227+
* Base schema to add `icons` property.
228228
*
229-
* Clients that support rendering icons MUST support at least the following MIME types:
230-
* - `image/png` - PNG images (safe, universal compatibility)
231-
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
232-
*
233-
* Clients that support rendering icons SHOULD also support:
234-
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
235-
* - `image/webp` - WebP images (modern, efficient format)
236229
*/
237230
export const IconsSchema = z.object({
231+
/**
232+
* Optional set of sized icons that the client can display in a user interface.
233+
*
234+
* Clients that support rendering icons MUST support at least the following MIME types:
235+
* - `image/png` - PNG images (safe, universal compatibility)
236+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
237+
*
238+
* Clients that support rendering icons SHOULD also support:
239+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
240+
* - `image/webp` - WebP images (modern, efficient format)
241+
*/
238242
icons: z.array(IconSchema).optional(),
239243
}).passthrough();
240244

0 commit comments

Comments
 (0)