Skip to content

Commit 11b0ba3

Browse files
docs(specTypeSchema): drop .parse() from isSpecType JSDoc
specTypeSchemas.X is typed as StandardSchemaV1, which only exposes ['~standard'].validate. The .parse() method exists at runtime (Zod) but is not on the public type, so the parenthetical produced a TS error if followed.
1 parent 25268f7 commit 11b0ba3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/core/src/types/specTypeSchema.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,7 @@ export const specTypeSchemas: SchemaRecord = Object.freeze(_specTypeSchemas) as
275275
* transforms are applied), and narrows to that input type. For schemas with `.default()` or
276276
* `.preprocess()`, this may accept values that do not structurally match the named output type;
277277
* for example `isSpecType.CallToolResult({})` is `true` because `content` has a default. Use
278-
* `specTypeSchemas.X['~standard'].validate(value)` (or `.parse(value)`) when you need the
279-
* validated output value.
278+
* `specTypeSchemas.X['~standard'].validate(value)` when you need the validated output value.
280279
*
281280
* Each guard is a standalone function, so it can be passed directly as a callback.
282281
*

0 commit comments

Comments
 (0)