UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

13 lines 400 B
import { union } from "./structs.mjs"; /** * 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. */ export function nullUnion(structs) { return union(structs); } //# sourceMappingURL=jsx.mjs.map