Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix: add ganache server type (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Jun 22, 2020
1 parent 2f81da2 commit a46e494
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
declare module "ganache-core" {
import { Server as HttpServer } from "http";
export interface JsonRpcPayload {
jsonrpc: string;
method: string;
Expand Down Expand Up @@ -51,7 +52,11 @@ declare module "ganache-core" {
}

export function provider(opts?: IProviderOptions): Provider;
export function server(opts?: IServerOptions): any;
export function server(opts?: IServerOptions): Server;

export interface Server extends HttpServer {
provider: Provider
}

export interface Provider {
send(
Expand Down

0 comments on commit a46e494

Please sign in to comment.