-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
LoggingController:stateChange
error by creating yarn patch that…
… exports missing `stateChange` type
- Loading branch information
Showing
4 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.yarn/patches/@metamask-logging-controller-npm-3.0.1-dc772bba77.patch
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/dist/types/LoggingController.d.ts b/dist/types/LoggingController.d.ts | ||
index 4f00c2991dfd20a47944944eacae96c636a2accf..a8a70110d6db24dfa24324369e7f11a96f77e790 100644 | ||
--- a/dist/types/LoggingController.d.ts | ||
+++ b/dist/types/LoggingController.d.ts | ||
@@ -1,4 +1,4 @@ | ||
-import type { RestrictedControllerMessenger } from '@metamask/base-controller'; | ||
+import type { RestrictedControllerMessenger, ControllerGetStateAction, ControllerStateChangeEvent } from '@metamask/base-controller'; | ||
import { BaseController } from '@metamask/base-controller'; | ||
import type { Log } from './logTypes'; | ||
/** | ||
@@ -29,12 +29,15 @@ export declare type AddLog = { | ||
type: `${typeof name}:add`; | ||
handler: LoggingController['add']; | ||
}; | ||
+export declare type LoggingControllerGetStateAction = ControllerGetStateAction<typeof name, LoggingControllerState>; | ||
/** | ||
* Currently only an alias, but the idea here is if future actions are needed | ||
* this can transition easily into a union type. | ||
*/ | ||
-export declare type LoggingControllerActions = AddLog; | ||
-export declare type LoggingControllerMessenger = RestrictedControllerMessenger<typeof name, LoggingControllerActions, never, never, never>; | ||
+export declare type LoggingControllerActions = LoggingControllerGetStateAction | AddLog; | ||
+export declare type LoggingControllerStateChangeEvent = ControllerStateChangeEvent<typeof name, LoggingControllerState>; | ||
+export declare type LoggingControllerEvents = LoggingControllerStateChangeEvent; | ||
+export declare type LoggingControllerMessenger = RestrictedControllerMessenger<typeof name, LoggingControllerActions, LoggingControllerEvents, never, never>; | ||
/** | ||
* Controller that manages a list of logs for signature requests. | ||
*/ |
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