UNPKG

@fairmint/canton-node-sdk

Version:
17 lines 615 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RecordSchema = void 0; const zod_1 = require("zod"); /** * Generic record schema allowing string, number, boolean, null, nested objects, and arrays. Used for contract arguments * and choice arguments. */ exports.RecordSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.union([ zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.null(), zod_1.z.record(zod_1.z.string(), zod_1.z.any()), // Allow nested objects zod_1.z.array(zod_1.z.any()), // Allow arrays ])); //# sourceMappingURL=base.js.map