UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

1 lines 639 B
{"version":3,"file":"create-interface.mjs","sourceRoot":"","sources":["../../../src/types/methods/create-interface.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentOrElement, InterfaceContext } from '..';\n\n/**\n * The request parameters for the `snap_createInterface` method.\n *\n * @property ui - The components to display in the interface.\n */\nexport type CreateInterfaceParams = {\n ui: ComponentOrElement;\n context?: InterfaceContext;\n};\n\n/**\n * The result returned by the `snap_createInterface` method, which is the id of the created interface.\n */\nexport type CreateInterfaceResult = string;\n"]}