@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
1 lines • 812 B
Source Map (JSON)
{"version":3,"file":"track-event.cjs","sourceRoot":"","sources":["../../../src/types/methods/track-event.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The parameters for the `snap_trackEvent` method.\n *\n * @property event - Primary payload object containing other metrics properties.\n * @property event.event - The name of the event to track.\n * @property event.properties - Custom values to track.\n * @property event.sensitiveProperties - Sensitive values to track.\n */\nexport type TrackEventParams = {\n event: {\n event: string;\n properties?: Record<string, Json>;\n sensitiveProperties?: Record<string, Json>;\n };\n};\n\n/**\n * The result returned by the `snap_trackEvent` method.\n */\nexport type TrackEventResult = null;\n"]}