Improve ganache-core's GanacheOpts type and require it instead of any
				
					
				
			This commit is contained in:
		| @@ -15,7 +15,7 @@ export class GanacheSubprovider extends Subprovider { | ||||
|      * Instantiates a GanacheSubprovider | ||||
|      * @param opts The desired opts with which to instantiate the Ganache provider | ||||
|      */ | ||||
|     constructor(opts: any) { | ||||
|     constructor(opts: Ganache.GanacheOpts) { | ||||
|         super(); | ||||
|         this._ganacheProvider = Ganache.provider(opts); | ||||
|     } | ||||
|   | ||||
| @@ -7,7 +7,9 @@ declare module 'ganache-core' { | ||||
|         }; | ||||
|         port?: number; | ||||
|         network_id?: number; | ||||
|         networkId?: number; | ||||
|         mnemonic?: string; | ||||
|         gasLimit?: number; | ||||
|     } | ||||
|     // tslint:disable-next-line:completed-docs | ||||
|     export function provider(opts: GanacheOpts): Provider; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user