File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,16 +11,19 @@ export interface BrownieStore {}
1111
1212type StoreListener = ( ) => void ;
1313
14+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15+ type HostObject = any ;
16+
1417interface StoreCache {
15- hostObject : any ;
18+ hostObject : HostObject ;
1619 snapshot : Record < string , unknown > ;
1720 listeners : Set < StoreListener > ;
1821}
1922
2023const stores = new Map < string , StoreCache > ( ) ;
2124
22- function getHostObject ( key : string ) : any {
23- // @ts -ignore
25+ function getHostObject ( key : string ) : HostObject {
26+ // @ts -expect-error - untyped global prop set by BrownieInstaller.cpp
2427 return global . __getStore ?.( key ) ;
2528}
2629
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ program
2828program
2929 . optionsGroup ( 'Global options:' )
3030 . option ( '--verbose' , 'enable verbose logging' )
31- . hook ( 'preAction' , ( _cmd ) => {
31+ . hook ( 'preAction' , ( ) => {
3232 const opts = program . opts ( ) ;
3333 if ( opts . verbose ) {
3434 logger . setVerbose ( opts . verbose ?? false ) ;
@@ -43,7 +43,7 @@ program.configureHelp({
4343} ) ;
4444
4545function registrationHelper (
46- commandsRegistration : Record < string , any | Command | ExampleUsage > ,
46+ commandsRegistration : Record < string , unknown | Command | ExampleUsage > ,
4747 groupName : string
4848) {
4949 program . commandsGroup ( groupName ) ;
You can’t perform that action at this time.
0 commit comments