UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

17 lines 549 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.nullUnion = void 0; const structs_1 = require("./structs.cjs"); /** * Create a union struct that uses `null` for the schema type, for better * compatibility with `Describe`. * * @param structs - The structs to union. * @returns The `superstruct` struct, which validates that the value satisfies * one of the structs. */ function nullUnion(structs) { return (0, structs_1.union)(structs); } exports.nullUnion = nullUnion; //# sourceMappingURL=jsx.cjs.map