@node-in-layers/mcp
    Preparing search index...

    Function zodParse

    • Runs zod parse on the raw object input, and then if successful returns the typed object. Otherwise an exception is thrown.

      Type Parameters

      • T extends object

      Parameters

      • schema: ZodType<T>

        The zod schema to parse the input against.

      • rawInput: any

        The raw object input to parse.

      Returns T

      The typed object.

      An exception if the input does not match the schema.