Skip to content

Commit 6f188e0

Browse files
fix(core): exclude StandardSchema values from isSchemaBundle discriminator
1 parent e2fef7c commit 6f188e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/shared/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ export abstract class Protocol<ContextT extends BaseContext> {
12151215
}
12161216

12171217
function isSchemaBundle(value: AnySchema | { params: AnySchema; result: AnySchema }): value is { params: AnySchema; result: AnySchema } {
1218-
return 'params' in value && 'result' in value;
1218+
return !('~standard' in value) && 'params' in value && 'result' in value;
12191219
}
12201220

12211221
function isPlainObject(value: unknown): value is Record<string, unknown> {

0 commit comments

Comments
 (0)