-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0668ba5
commit d503d91
Showing
41 changed files
with
2,114 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
import type { Json } from '@metamask/utils'; | ||
|
||
import type { State } from './utils'; | ||
|
||
export type BaseParams = { encrypted?: boolean }; | ||
export type LegacyParams = { encrypted?: boolean }; | ||
|
||
export type BaseParams = { key?: string; encrypted?: boolean }; | ||
|
||
/** | ||
* The parameters for the `setState` JSON-RPC method. | ||
* | ||
* The current state will be merged with the new state. | ||
*/ | ||
export type SetStateParams = BaseParams & Partial<State>; | ||
export type SetStateParams = BaseParams & { | ||
value: Json; | ||
}; | ||
|
||
/** | ||
* The parameters for the `legacy_setState` JSON-RPC method. | ||
*/ | ||
export type LegacySetStateParams = LegacyParams & Partial<State>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.