@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
18 lines • 636 B
text/typescript
import type { JsonRpcError } from "@metamask/utils";
import type { Snap } from "../snap.cjs";
/**
* An object mapping the IDs of the requested Snaps to optional SemVer version
* ranges. The SemVer version ranges use the same semantics as NPM
* `package.json` ranges.
*/
export type RequestSnapsParams = Record<string, {
version?: string;
}>;
/**
* An object mapping the IDs of the requested Snaps to either the installed Snap
* or an error if the Snap failed to install or was not permitted.
*/
export type RequestSnapsResult = Record<string, {
error: JsonRpcError;
} | Snap>;
//# sourceMappingURL=request-snaps.d.cts.map