UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

1 lines 892 B
{"version":3,"file":"update-interface.cjs","sourceRoot":"","sources":["../../../src/types/methods/update-interface.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentOrElement, InterfaceContext } from '..';\n\n/**\n * An object containing the parameters for the `snap_updateInterface` method.\n */\nexport type UpdateInterfaceParams = {\n /**\n * The ID of the interface to update.\n */\n id: string;\n\n /**\n * The new custom UI content to display in the interface.\n */\n ui: ComponentOrElement;\n\n /**\n * Optional context for the interface, which can be used to provide additional\n * information about the interface to the Snap, without being part of the UI\n * itself.\n */\n context?: InterfaceContext;\n};\n\n/**\n * This method does not return any data, so the result is always `null`.\n */\nexport type UpdateInterfaceResult = null;\n"]}