UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

18 lines 741 B
import type { Component } from "./components/index.cjs"; /** * Check if the given value is a {@link Component}. This performs recursive * validation of the component's children (if any). * * @param value - The value to check. * @returns `true` if the value is a {@link Component}, `false` otherwise. */ export declare function isComponent(value: unknown): value is Component; /** * Assert that the given value is a {@link Component}. This performs recursive * validation of the component's children (if any). * * @param value - The value to check. * @throws If the value is not a {@link Component}. */ export declare function assertIsComponent(value: unknown): asserts value is Component; //# sourceMappingURL=component.d.cts.map