@devries-cameron20 / composio Mirror · read-only / commits / fc5323bab
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 02:00 UTC

chore: remove unnecessary eslint-disable comment

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Dhawal Upadhyay committed Mar 18, 2026 at 13:21 UTC fc5323bab7382cd558f67a7b6b8fd35f1e349fd4
1 file changed +1 -3
ts/packages/core/src/models/CustomTool.ts
+1 -3
@@ -128,9 +128,7 @@ export function createCustomTool<T extends z.ZodType>(
128 if (!options.inputParams) {
129 throw new ValidationError('createCustomTool: inputParams is required');
130 }
131 - // Check for z.object() — use _def.typeName instead of instanceof to work
132 - // across different Zod instances (e.g. when user imports their own zod/v3)
133 - // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Zod internals, cross-instance safe
131 + // Use _def.typeName instead of instanceof to work across different Zod instances
132 if ((options.inputParams as { _def?: { typeName?: string } })?._def?.typeName !== 'ZodObject') {
133 throw new ValidationError(
134 'createCustomTool: inputParams must be a z.object() schema. ' +