In-line the declaration

This commit is contained in:
Fabio Berger
2019-03-20 16:27:13 +01:00
parent 8af164dbd2
commit 542d1c1c41

View File

@@ -1,5 +1,7 @@
declare module 'ganache-core' {
const Provider = require('ethereum-types').Provider;
export interface GanacheProvider {
sendAsync(payload: JSONRPCRequestPayload, callback: JSONRPCErrorCallback): void;
}
export interface GanacheOpts {
verbose?: boolean;
logger?: {
@@ -13,5 +15,5 @@ declare module 'ganache-core' {
vmErrorsOnRPCResponse?: boolean;
db_path?: string;
}
export function provider(opts: GanacheOpts): Provider;
export function provider(opts: GanacheOpts): GanacheProvider;
}