@metamask/utils
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -62,5 +62,7 @@ import { Infer, Struct } from 'superstruct'; | ||
}>; | ||
export declare type InferWithParams<Type extends Struct<any, unknown>, Params extends JsonRpcParams> = Omit<Infer<Type>, 'params'> & { | ||
export declare type InferWithParams<Type extends Struct<any, unknown>, Params extends JsonRpcParams> = Omit<Infer<Type>, 'params'> & (keyof Params extends undefined ? { | ||
params?: Params; | ||
} : { | ||
params: Params; | ||
}; | ||
}); | ||
/** | ||
@@ -67,0 +69,0 @@ * A JSON-RPC request object. |
{ | ||
"name": "@metamask/utils", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Various JavaScript/TypeScript utilities of wide relevance to the MetaMask codebase.", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164295
28
2877